Sample Java programs