learn to code in java. Some exercise