public class Test {
public static int f1( int m1 )
{
return ( m1 + 1 );
}
public static double f1( double m1 )
{
return ( m1 * m1 );
}
public static void main( String[] arg ) {
double x1, x3;
x1 = 2.0;
x2 = 5.0;
x3 = f1( x1 );
System.out.println("x3 = “ + x3 );
}
}
I know it prints out 4.0 but how does it get this answer. Im cunfused as to where you get # for m1?