Hi Ted,
Mala Gupta's book is at this moment one of the better books (and even maybe the best) to prepare for the OCAJP7. And it's a new kid (book) on the block, so it's written from scratch. Other books are mostly updates from a previous version, so they have already survived more (technical) reviews. That's probably why some statements could/should be rephrased a bit to avoid confusion or make things more clear.
I must say I like the way you prepare for the exam: creating lots of different code snippets and writing little programs to give you lots of code practice. That's really a must-do when preparing for the exam. The 2 code examples you posted in this
thread are great to prepare you for the exam and get a good grasp on things. But please don't write these enhanced for loops when you work as a java programmer/developer. It's not clean, easy, readible code
But for learning purposes (almost) everything is allowed.
(ps. package names should always be lower case according to conventions, but as you already noticed it won't give a compiler error if you don't)
Regards,
Roel