java程序中String args[]起什麼作用?

String args[]或者String[] args表示給主方法傳一個字符串數組.   而args是一個字符串數組的變量名,不是關鍵字, 是arguments的縮寫,只是一個默認名,一般都習慣性照寫.   class Example{   public static void main(String args[]){   System.out.println("This is a simple
相關文章
相關標籤/搜索