Quantcast
Channel: Search question
Viewing all articles
Browse latest Browse all 5

Search question

$
0
0
I came across the following as another way to do the parsing: See . With that you can do things like: String line = ...; StreamTokenizer tok = new StreamTokenizer(new StringReader(line)); tok.resetSyntax(); tok.wordChars('\u0000','\uFFFF'); tok.whitespaceChars(',', ','); tok.quoteChar('\"'); while (tok.nextToken() != StreamTokenizer.TT_EOF) { String word = tok.sval; System.out.println(word); } -- Justausr

Viewing all articles
Browse latest Browse all 5

Latest Images

Trending Articles





Latest Images