結果 : how to write a method with parameters in java