Codes writed in learning Java