Hi guys,
I am pretty new in this coding stuff,
I never learn any programming language before.
So I think I am gonna need your help and guidance to stretch out bit more explanation from Head
Java First book.
In time I am on chap 2, so far I can understand what I have red clearly but got stuck now on
digesting the GuessGame case,lol
So here it is, here the GuessGame Code from the book:
This code run excellent but I am just curious to understanding line by line, so here are my questions:
1. line 8,9,10,62 why there is a 0 value? I mean if I delete the 0 value it still runs perfectly just the same, does the 0 value mean counting each loop?
2. line 8,9,10 also if I delete the 0 value and put them before the line 7 (above: public void
gameStart) it also works the same, so what is the difference with that treatment? because I feel its much more neat to put it before line 7 just like declaring player instance variable.
3. this one is unrelated question to the case, can someone give me more bold and easier explanation to public, static meaning?
anyway this how I modify the code and results the same: