Java: restructured things

Done for today.
Java: problem 5

Very, very borken (pun intended) implementation of problem 5. It's so
borken it doesn't even compile.
Also, Batch sucks monkey nuts.