Let's try and do this in Java