摘要:
* 说的是foreach,实际代码中写的仍然是: for ``` public class HelloWorld { public static void main(String[] args){ int data [] = new int [] {1,2,3,4,5}; for(int temp 阅读全文
摘要:
* 数组是引用传递 ``` public class HelloWorld { public static void main(String[] args){ // 数组是引用数据类型;就一定会发生引用传递; int data [] = new int [] {10,20,30}; int temp 阅读全文
摘要:
``` public class HelloWorld { public static void main(String[] args){ //int data [] = {1,2,3};// 静态初始化 - 简略格式 int data [] = new int [] {11,22,33};// 静 阅读全文