Week 1 started off simple compared to 'Head First Java'. First few exercises were to do with simple printing. Using the “sout” (Tab) command made typing out ‘System.out.println(“”)’ much easier.
The rest of the week was about primitive time variables and how they are initialised and the values stored in them. Along with a few exercises to do with the Math functions. The week ended on the use of the Java utility called Scanner to allow the user to type into the console and the input used for calculations etc.
One of the exercises I struggled on was when using the % function, which provides the remainder of the division of two numbers; the exercise needed you to output where the user input was even or odd. The solution was that even numbers when halved do not give a remainder (i.e. 8 % 2 == 0).
Week 2 begins with introduction to loops (while(), for())