Eclipse : how we take arguments for main when run

后端 未结 4 1383
臣服心动
臣服心动 2020-11-27 21:25

In Java, for a normal main method :

public static void main(String[] args){
    // code here
}

String[] args is used to take s

4条回答
  •  一个人的身影
    2020-11-27 22:14

    It was weird that I had to pass each argument in a new line but after reading a bit it made sense to me(overlooked the fact that they(Arguments) are instances of String). Multiple Arguments for a PSVM

提交回复
热议问题