Sample Java Code