結果 : can we write a function inside a function in java