日期:2014-05-20 浏览次数:20616 次
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; }