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 */ 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(); /* Pay particular attention to where the quotes are in the following statement. What is inside the quotes, and what is outside the quotes? */ System.out.println("Welcome to CS117,\n" + name1 + " and " + name2 + "!"); } }