added a java program