Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

Java Java Basics Getting Started with Java Strings, Variables, and Formatting

best way to approaching a task and when to move on

Should we memorize the code in the tasks as form of learning it. Through repitition? or should we just move on?

2 Answers

Rebecca Rich
PLUS
Rebecca Rich
Courses Plus Student 8,592 Points

Hi Elimelech,

I don't know that it is necessary to memorize the code in the task verbatim; that being said, as you code and get more familiar with Java, there are certain fundamental patterns to the code and details you will begin to memorize. Some examples:

  • Every Object needs a constructor and can have member variables with different access modifiers (public, private, etc)
  • Java's primitive datatypes: int, double, boolean, etc. and how to use and create them
  • Concatenating two Strings

... The list will get longer the more and more familiar you get with Java. Just make sure you are understanding what you are coding and have fun coding more and more things. With practice, you will slowly memorize these details.

Thale van der Sluijs
Thale van der Sluijs
1,756 Points

Hi Elimelech,

When you get further, you have to do all of these codes again so it good to do them at here.... And when you get further the code's will be much difficulter and you have to practise for that now. So just keep going and you'll get a good coder :-).