平台:java
说明:无
依赖:无
源码:
public static String[] convertLS2As(List<String> stringList){ String[] arrayValue = new String[stringList.size()]; for(int i=0;i<stringList.size();i++){ arrayValue[i] = stringList.get(i); } return arrayValue; } public static int[] convertLI2Ai(List<Integer> intList){ int[] arrayValue = new int[intList.size()]; for(int i=0;i<intList.size();i++){ arrayValue[i] = intList.get(i); } return arrayValue; } public static float[] convertLF2Af(List<Float> floatList){ float[] arrayValue = new float[floatList.size()]; for(int i=0;i<floatList.size();i++){ arrayValue[i] = floatList.get(i); } return arrayValue; }
使用:无
备注:无