What is “String args[]”? parameter in main method Java

前端 未结 17 1472
有刺的猬
有刺的猬 2020-11-21 23:58

I\'m just beginning to write programs in Java. What does the following Java code mean?

public static void main(String[] args)
  • What

17条回答
  •  栀梦
    栀梦 (楼主)
    2020-11-22 00:23

    try this:

    System.getProperties().getProperty("sun.java.command", 
        System.getProperties().getProperty("sun.rt.javaCommand"));
    

提交回复
热议问题