Simple Java programs