Integer[] e = list.toArray(new Integer[]{});//传入一个零长度的数组,指定返回类型。
//Integer [] e = lst.toArray(new Integer[list.size()]);// 传入一个数组,指定返回类型。
int a[] = {-1,84, 40, 16, 3,-6, 94,111,111,10, 49, 28, 76, 94, 70};
int _max = com.google.common.primitives.Ints.max(a);
int _min = com.google.common.primitives.Ints.min(a);
System.out.println("___max:"+_max+" ___min:"+_min);
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
List<Integer> lst = Lists.newArrayList();
lst.add(Integer.valueOf(12));lst.add(Integer.valueOf(132));
lst.add(Integer.valueOf(3));
lst.add(Integer.valueOf(2));
Integer [] c = lst.toArray(new Integer[]{});//传入一个零长度的数组,指定返回类型。
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
ImmutableList<String> list2 = ImmutableList.of("a","b","c");
String str[] = list2.toArray(new String[]{}) ;//传入一个零长度的数组,指定返回类型。
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Integer a[] = {-1,84, 40, 16, 3,-6, 94,111,111,10, 49, 28, 76, 94, 70};