// CS 101 class example // print the max of two numbers entered by the user public class FindMax { public static void main(String[] args) { if (args.length != 2 ) { System.out.println("Usage: java FindMax "); } else { int x = Integer.parseInt(args[0]); int y = Integer.parseInt(args[1]); int max = 0; if (x > y) { max = x; } else { max = y; } System.out.println("The max of " + x + " and " + y + " is " + max); } } }