結果 : java define function as parameter