結果 : how to take input in method in java