Method Overloading

public class MethodOverloading
      {
           public void firstmethod(int i, int j)
        {
             System.out.println("inside first method");
             System.out.println("Value of i is "+i+ "Value of j is " +j);
        }
        public void secondmethod(char x, char y)
        {
             System.out.println("inside second method");
             System.out.println("Value of x is "+x+ "Value of y is " +y);
        }
    }

class Sample
{
   public static void main(String args[])
   {
       MethodOverloading obj = new MethodOverloading();
       obj.firstmethod(10, 20);
       obj.secondmethod('a', 'b');
   }
}