Class Working about programming language JAVA