結果 : java function return different types