Notes
1)main method contain sub method.
2)sub method-
ie println with argument (string s)
so sub method have given argument 4 time by using for loop😉.
3)just write System.out.println(s);
in for loop.
How to solve?
Under discussion
Comments (1)
- Popular
- New
- Old
You must be signed in to leave a comment
Krystian
5 August 2020, 12:07
Maybe this:
Java does not directly support nested methods. 0