0

Вопрос насчет кода в обучении

Что означает строчка (String[ ] args)

5th May 2019, 10:10 AM
TV HUNT
TV HUNT - avatar
1 Antwort
+ 1
it is arguments what you can add when you call your program from command line // if you have code: public class Main { public static void main(String[] args) { var s = System.out; s.println(args[0]); s.println(args[1]); s.println(args[2]); } } ---------------------------- from command line: javac Main.java java Main name1 name2 name3 there is output: name1 name2 name3
5th May 2019, 11:29 AM
zemiak