private void dothis() throws Exception { list = new LinkedList<Instance>(); Entity ss = null; Entity s2 = null; EntityGroup eg = null; FeatureGeter fp = null; Instance in = null; Iterator<Entity> it = null; List<String> newdata = null; while (ll.size() > 0) { ss = (Entity) ll.poll(); it = ll.iterator(); while (it.hasNext()) { s2 = (Entity) it.next(); eg = new EntityGroup(ss, s2); fp = new FeatureGeter(eg); String[] tokens = this.intArrayToString(fp.getFeatrue()).split("\\t+|\\s+"); newdata = Arrays.asList(tokens); in = new Instance(newdata, null); in.setSource(eg); list.add(in); } } }