// Demonstration of the method overloading 
 public class Sum {
   // Driver code
   public static void main( String args[ ] ) {
     Sum s = new Sum( );
     if ( args.length == 3 )
       System.out.println( s.sum( Integer.parseInt( args[0] ),
                                  Integer.parseInt( args[1] ),
                                  Integer.parseInt( args[2] ) ) );
     else if ( args.length == 2 )
       // See whether the number is a double by checking
       // whether it contains a period.
       if ( args[0].