.java sample added