读入数据总是超内存是神马状况。。。
这样一个数据结构:
public class Feature { String name = new String(); byte[] coords = new byte[128]; // 所有维度的数值}while ((tempString = reader.readLine()) != null && i!=total-1) { String[] vector = tempString.split(" "); f[i] = new Feature(); f[i].name = vector[0]; for(int j=0;j<128;j++) { k = Integer.valueOf(vector[j+1]); f[i].coords[j] = (byte)k; } i++; vector = null; }