Fix Java Code so that it no longer throws warnings

Mainly turn every single `ArrayList` into `ArrayList<String>`

The tests pass, under *Java 7*. Although I've tried to keep compatibility with *Java 6*, I can't say for sure that it happenned.