結果 : java function return two different types