33343536373839
{ String [] vals = line.trim().split(delim); long id = Long.parseLong(vals[0]); double [] vec = new double[vals.length-1]; for(int i = 1, max = vals.length; i < max; i++) vec[i-1] = Double.parseDouble(vals[i]); return new VectorWithId(id, vec); }