結果 : java method accept function as parameter