write a Java program using command line arguments. only method required:getMax,
public static void main( String[] args)
{
int num1, num2;
num1 = Integer.parseInt(args[0]);
num2 = Integer.parseInt(args[1]);
System.out.println(“the bigger value of the two is : “ + getMax(num1, num2));
}
You program may appear as like:
java Assign4 24 68
bigger value of the two is 68
Already registered? Login
Not Account? Sign up
Enter your email address to reset your password
Back to Login? Click here