Added Java program