FAQ: Hello World: Java - Java Review: Putting It All Together


This community-built FAQ covers the “Java Review: Putting It All Together” exercise from the lesson “Hello World: Java”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Learn Java

FAQs on the exercise Java Review: Putting It All Together

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!

i think the error you get is quite descriptive: TimeLine.java:18: error ‘{’ expected

it tells you what is missing, as well where you forgot the curly bracket.


follow op question to this screenshot. I get this error a lot, but codeacademy still excepts the solution, just as you see there. What is up with that? Also I don’t see how you can tell from this error where curly brackets are missing.

1 Like


Where am I going wrong?

step 3 of the instructions is:

Inside of the curly braces for the main() method

i don’t see curly brackets for your main method


I’m not getting any errors within the terminal, but I continue to get the red text informing me of how to use “single line comment syntax”. Currently, I am stuck on the third problem for this page. Any tips?