摘要:
数组(相同数据类型的集合):是引用数据类型,数组的中的每个元素相当于数组的成员变量int [] num/ int num[]int nums [] = new int [5];//创建了数组的对象并且指定了数组的长度。数组的长度一旦指定就不能更改index 下标 索引 从零开始的args 参数 接收命令行参数例题:public class T9d {public static void main(String args[]) {String str1= args[0];System.out.println(str1);}}//编译后在控制台上输了java T9d hello 后就会打印出hel 阅读全文