What's wrong with this code? Help please!

<Below this line, add a link to the EXACT exercise that you are stuck at.>


<Below this line, in what way does your code behave incorrectly? Include ALL error messages.>
error: ‘{’ expected
public class PRG215_Week_1.java {
1 error

Compile failed; see the compiler error output for details.
BUILD FAILED (total time: 0 seconds)


package week_1;
import java.util.Scanner;

  • @author
    public class PRG215_Week_1 {

    public static void main(Stringargs){
    //create a keyboard input object
    Scanner keyboard = new Scanner(System.in);

     //Display on the console - ask for the costumer's name
     System.out.print("Please enter your name");
     //Get the costumer name from the keyboard and store it in the string object "customerName"
     String customerName = keyboard.next(); 
     //Display the customer's name on the console using println()
     System.out.println("Welcome, " + customerName + "!");



<do not remove the three backticks above>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.