My code of learning java.