Mega Code Archive
Using Method Overloading
A method's name with the types and sequence of the parameters form the method's signature
public class MainClass {
public void print(int a) {
System.out.println(a);
}
public void print(String a) {
System.out.println(a);
}
}