我正在使用JDK 1.7和Eclipse,并尝试将两个字符串数组连接起来:
String [] a1 = { "a12", "b12" };
String [] a2 = { "c12", "d23", "ewe", "fdfsd" };
我已经尝试过
String[] both = ObjectArrays.concat(a1,a2,String.class);
导入的
import com.google.common.collect.ObjectArrays;
收到错误:
can not resolve "import com.google.common.collect.ObjectArrays"
有人可以帮忙吗?我正在使用Maven构建项目。
String[]
数组,其中包含另外两个数组的元素吗? - Sotirios Delimanolis