All pastes #447925 Raw Edit

Untitled

public java v1 · immutable
·published 2007-04-19 11:42 UTC
rendered paste body
	public Vector<Road> getRoads() {		Vector<Vector> v;		Vector <Road> roads = new Vector<Road>();		try {			v = parseQuery(executeQuery(qb.getRoads()), null);			Iterator<Vector> i = v.iterator();			while(i.hasNext()) {				Vector fields = i.next();				int id = Integer.parseInt(fields.elementAt(0).toString());				Vector<Point> coors = getCoors("R" + id);				roads.add(new Road(coors));			}		} catch(Exception e) {			System.out.println(e);		}		return roads;	}