結果 : can you define a method within a method java