public class TestList { public static void main(String[] args) { Set<Integer> set = new TreeSet<Integer>(); List<Integer> list1=new ArrayList<Integer>(); list1.add(5); list1.add(3); list1.add(1); list1.add(4); List<Integer> l
Java中两个或多个byte数组合并及int类型转数组 // 用list好处是可以未知多个? public static byte[] test(List<byte[]> values) { int lengthByte = 0; for (byte[] value : values) { lengthByte += value.length; } byte[] allBytes = new byte[lengthByte]; int countLength = 0; for (byte[]