Brewing up a friendly byte

Report a typo

Create a program that asks for a customer's name and their coffee order, then displays a friendly confirmation message. Fill in the blanks in the code to make it work correctly.

Fill in the gaps with the relevant elements
  ();
System.out.print("Enter your : ");
 name ();
System.out.print("Enter your : ");
String order = scanner.nextLine();
System.out.println("Thank you, " + name + "!");
System.out.println("Your order: " + order);
String= scanner.orderscannernextLineScannernameSystem.in= new Scanner
___

Create a free account to access the full topic