0
Can i create method under main mathod? Can I use it in another class?
2 ответов
+ 2
No, in Java it is not possible to for a method to have another nested method inside.
You can have a nested (inner) class within a class, but not inside a method either.