Messing around with some Java