Example Java programs