Blog

shape
shape
shape
shape
shape
shape
shape
shape
Standard

Method overloading in Java

In Java you can declare methods with the same name in a class, but each method must contain different sets of parameters. In other words, this is called Method Overloading. public class Calculadora{ public int soma(int valor1, int valor2){ return valor1 + valor2; } public float soma(float valor1, float valor2){ return valor1 + valor2; }

Standard

Debian Squeeze Terminal (SSH) with Colored Text

Unlike Ubuntu, Debian 6 Squeeze doesn’t have the colored text in the Terminal or SSH of folders, files and so on… Doing a bit of research, I found the following solution: 1 – Edit the file /etc/bash.bashrc   $ vi /etc/bash.bashrc 2 – Add the following code to the file: # System-wide .bashrc file for

Standard

Learn how to enable Mod_rewrite in Apache

The Apache mod_rewrite module allows you to rewrite URLs so that they don’t point to the real address of the file and the real name of the file. This is often used to create so-called Friendly URLs.   To activate the mod_rewrite module just use the following command: $ a2enmod rewrite   Now edit the

Latest news

Latest news directly from our blog.