Sample  Java Codes