結果 : can we write function inside function in java