java,字符串数组截取答:,"坑口","花地湾","芳村","黄沙","长寿路","陈家祠","西门口"} ;Test test = new Test();test.print(line1,5);} public void print(String[] array, int i){ for(int j=0; j
java中字符串和字符数组有什么区别?答:(数组和类的区别就不用我说了吧)\r\n2、字符数组是char类型的,字符串是String类型的\r\n3、两者之间的相互转化:\r\nStrings="thisisastring";\r\nchar[]c={'t','h','i','s','i','s','a','c','h','a','r'};\r\n字符串转换为字符数组\r\nchar[]ch=s.toCharArray();...