Winston Gutkowski wrote:
Renato Bello wrote:I am still here with the hope that someone help me with these dilemmas.
And we're still hoping you'll comply with Henry's request. As he said, this is not optional.
Winston
Renato Bello wrote:Thank you, GK
I still have some questions:
21 if (index < 5) {
- then the index will always be less than 5 because there is nothing that increments this value?
23 Mix4 m4 = new Mix4();
24 m4.counter = m4counter + 1;
- the total value of m4.counter is infinite and has no use for anything, right?
25 return 1;
- I use the return value of the method maybeNew using the parameter value "index" to add to the value of the variable "count"?
13 count = count + m4a[x].maybeNew(x);
- I still do not understand what is the relationship between M4a [x] and the method "maybeNew". (are in different methods and thought that would relate instance variables with class objects)
Henry Wong wrote:Please QuoteYourSources.
21 if (index < 5) {
23 Mix4 m4 = new Mix4();
24 m4.counter = m4counter + 1;
25 return 1;
13 count = count + m4a[x].maybeNew(x);
Jelle Klap wrote:Semantically the two code blocks are identical.
The only difference is that your code initializes the counter to 0 and increments it at the end of the loop, whereas the other solution initializes the counter to -1 and increments it at the beginning of the loop before it is used.
Adrian Burkett wrote:
Renato Bello wrote:I got a different conclusion
It would help if you told us what the difference was.
Greg Brannon wrote:I suggest you start by working your way though this FAQ on setting up a development environment and running your first Java program. Please come back as you have additional questions or need further guidance.
Jesper de Jong wrote:I'm not sure that it's necessary to completely reboot the computer after adding or changing a system environment variable.
You do have to close and re-open the command prompt window though (not only on Windows 7, but also on Vista and XP), because the command prompt only reads the variables at the moment you open it - it will not pick up changes while it's open.