The Author Online Book Forums are Moving

The Author Online Book Forums will soon redirect to Manning's liveBook and liveVideo. All book forum content will migrate to liveBook's discussion forum and all video forum content will migrate to liveVideo. Log in to liveBook or liveVideo with your Manning credentials to join the discussion!

Thank you for your engagement in the AoF over the years! We look forward to offering you a more enhanced forum experience.

thishinoda (1) [Avatar] Offline
#1
Hello, Mala

Thank you for the book, I'm brazilian and I hope pass the test soon. Really good book!

However, I found an error on example of section 7.3.3, page 372. We'll see...

...
line 1| String[] students = {"Shreya", "Joseph"};
line 2| int pos = 1;
line 3| if (pos > 0 && pos < students.length)
line 4| System.out.println(students[pos]);
...

In the book, you said that line 4 "won't execute because pos is greater than length of array students"

But it's wrong, the line 4 executes fine because pos = 1 and students.length = 2.

If this have been reported, disregard this.
Oleg.R. (4) [Avatar] Offline
#2
Hello.

Look at this:
http://www.manning.com/gupta/excerpt_errata.html

...
should be: int pos = 10;
...

But, bigger fish to fry.
What do you think about type char?