結果 : how to make a recursive method in java