Practise Programs in Java