Answer:
See the code snippet below
Explanation:
import java.util.Scanner;
public class LabProgram{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
System.out.println("Please enter first number: ");
int firstNumber = scan.nextInt();
System.out.println("Please enter second number: ");
int secondNumber = scan.nextInt();
maxMagnitude(firstNumber, secondNumber);
}
public static int maxMagnitude(int firstValue, secondValue){
System.out.println(Math.max(firstValue, secondValue));
}
}