Messing around with basic Java