A few words... you truly ought to be using a StringBuilder here, rather than a String, first of all. Secondly, the error is because the "enhanced for loop" i.e. for-each construct syntax is (roughly...