+ 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]); } } }

24th Aug 2017, 2:29 PM
Corey
Corey - avatar
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"
24th Aug 2017, 2:36 PM
Yanothai Chaitawat
Yanothai Chaitawat - avatar