Summer project/practice in java