my learn java code, not nice, just learning