Promemoria: StringTokenizer in java

Se dovete separare una stringa utilizzando un carattere come delimitatore dovete usare questa classe.
Però non so, è molto complessa la cosa. Più o meno così:

StringTokenizer st = new StringTokenizer("Ciao mondo", " ");
while {
   String tmp = st.nextToken();
   System.out.println(tmp);
}

Non fatelo a casa vostra…

Leave a Reply

Your email address will not be published.

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>