learning Java Codes