/* NameAge written by Keith Fenske Monday, 22 April 2002 Copyright (c) 2002 by Keith Fenske. All rights reserved. This Java program prints my name and my age using variables for both. One call to System.out.println is used to print two lines of text. */ public class NameAge { public static void main(String[] args) { int age = 21; // my age :-) String name = "Keith"; // my name System.out.println("My name is " + name + ".\nI am " + age + " years old."); } }