+ 5
Why I got "No Output" in Code Playground ?
Why I got "No Output" in Code Playground ? public class Program { public static void main(String[] args) { for(int i=0; i<args.length; i++){ System.out.println(args[i]); } } }
1 Antwort
+ 5
Sololearn code playground :
Sololearn just type
"java Program" so args.length is 0(Empty array)
If we. We will type
"java Program one two" now args.length is 2 and contain with "one" and "two"