0
What if we declare method Inside a main method in java
2 Réponses
+ 2
You mean nested methods ?
Java does not support “directly” nested methods but you can achive it using different technique.
Check the link given below for further reference :)
https://www.geeksforgeeks.org/method-within-method-in-java/
0
Tysm