/**  * @author gando **/ import java.util.Scanner;   public class mathMaxExample {     public static void main(String[] args)     {         Scanner in      = new Scanner(System.in);         int compareOne, compareTwo, largerNumber;         String position;                 System.out.print("Enter a number to be compared. $> "); compareOne = Integer.parseInt(in.nextLine());         System.out.print("Enter a second number to be compared. $> "); compareTwo = Integer.parseInt(in.nextLine());                 largerNumber = Math.max(compareOne, compareTwo);         position = compareOne == largerNumber ? "first." : "second.";                 System.out.println("You entered the numbers " + compareOne + " and " + compareTwo + ". " + largerNumber + " was the larger number, and you entered it " + position);       } }