/*********************************************************************** * Name: * Login: * Precept: * * Description: NextYear takes two command line arguments, a name and * an age. It prints out how old that person will be next year. By * doing this exercise, you will learn the difference between + * for concatenation and + for addition. * * Dependencies: None * * Examples: * > java NextYear Alice 19 * Next year Alice will be 20 years old. * > java NextYear FatherTime 999 * Next year FatherTime will be 1000 years old. ***********************************************************************/ public class NextYearSolution { public static void main(String[] args) { System.out.print("Next year " + args[0] + " will be "); System.out.print(Integer.parseInt(args[1]) + 1); System.out.println(" years old."); } }