my code practice for java learning.