question: protected List < Coord > parseLineString ( String line ) { List < Coord > coords = new ArrayList < Coord > ( ) ; Scanner lineScan ; Scanner tupleScan ; double x , y ; Coord c ; lineScan = new Scanner ( line ) ; lineScan . useDelimiter ( "," ) ; while ( lineScan . hasNext ( ) ) { tupleScan = new Scanner ( lineScan . next ( ) ) ; x = Double . parseDouble ( tupleScan . next ( ) ) ; y = Double . parseDouble ( tupleScan . next ( ) ) ; c = new Coord ( x , y ) ; coords . add ( c ) ; } return coords ; }
target:  Parses coordinate tuples from "LINESTRING" lines