Playing around with Java