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