programming perals of java code