/*********************************************************************** * Name: * Login: * Precept: * * Description: Reads two command line arguments and prints both out * in a sentence. By doing this exercise you will learn the difference * between print() and println(). * * Examples: * > java NameAge Alice 19 * Alice is 19 years old. * > java NameAge FatherTime 999 * FatherTime is 999 years old. ***********************************************************************/ public class NameAgeSolution { public static void main(String[] args) { System.out.print(args[0]); System.out.print(" is "); System.out.print(args[1]); System.out.println(" years old."); } }