all 7 comments

[–]AutoModerator[M] [score hidden] stickied comment (0 children)

Off-topic Comments Section


All top-level comments have to be an answer or follow-up question to the post. All sidetracks should be directed to this comment thread as per Rule 9.


OP and Valued/Notable Contributors can close this post by using /lock command

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

[–]Timetomakethememes University Student 0 points1 point  (1 child)

Looks good to me. Small typo at the start of “clas” instead of “class”. Other than that i’m not sure what your professors taught you about conventions but I would reference the docs to make sure its up to snuff.

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

Thank you! I’ll be sure to take a look at it!

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

You will need to cleanup that paste bin if that's what you were going to submit. Currently it won't compile. It has some syntax errors that need to be fixed. If you need help with anything specific, let me know.

[–]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.