import java.util.*; /** * Simple3.java * * Another really simple Java program, that accepts input and uses * this data as part of the output. * * @author Dave Musicant * CS117, Winter 2005 * date: January 5, 2005 */ public class Simple3 { /** * The main method for this class: prompts the user for input, and * prints out a message to the terminal */ public static void main(String[] args) { String name1; String name2; Scanner input = new Scanner(System.in); System.out.println("What is your name?"); name1 = input.next(); System.out.println("What is your partner's name?"); name2 = input.next(); System.out.println("Welcome to CS117,\n"+name1+" and "+name2+"!"); } }