Sample Java code