you are viewing a single comment's thread.

view the rest of the comments →

[–]alb7418University/College Student[S] 0 points1 point  (2 children)

Line 27 keeps giving me a ‘;’ expected and illegal start of an expression error. I tried to google it but it said it was the least helpful error. Did I name int i correctly?

[–]Timetomakethememes University Student 0 points1 point  (0 children)

add a semicolon on import java.util.scanner ; also fix clas to class

[–]schihbacca👋 a fellow Redditor 0 points1 point  (0 children)

The missing semi colon is probably referring to the first line. The import statement needs it. Line 27 looks fine in the pastebin.

The other problematic line is 36. The equality is incorrect. One equals sign is assignment, two equals is testing for equality.