codes for java