//第一种
String []test1 = new String[100];
//第二种
String []test2 = new String[]{"1","23","456"};
//第三种
String []test3 = {"1","23","456"};
Java定义数组的几种方式
最新推荐文章于 2024-07-15 23:22:42 发布
//第一种
String []test1 = new String[100];
//第二种
String []test2 = new String[]{"1","23","456"};
//第三种
String []test3 = {"1","23","456"};