I've been practically banging my head against the wall for the past 4 days trying to get this batch process to work in my Java Programming Class. I could not get even simple "batch" style method to run based on the example in the book... until I noticed that they didn't clearly mark the end of the main method when discussing using Batch. I thought that the batch method was inside the main method so I kept getting errors saying that my method had an "illegal start of expression". Just now I realized that the example program closes the main method first.
PLEASE PEOPLE! If you write a book teaching programming, PLEASE include comments when you are ending blocks of code so that we can clearly see what they go to.
// end rant