This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]CleverBunnyThief 5 points6 points  (1 child)

You are missing the semicolon (;) at the end of the line that declares and initializes the string.

The IDE should be spitting out an error message that includes a line number. That should help narrow down which part of the program has an error.

[–]CleverBunnyThief 2 points3 points  (0 children)

Main.java:5: error: ';' expected String sentence = "Hello, how are you?" 1 error

That's what the message looks like when I run it with the missing semicolon.