Character Input and Output in Java
Intermediate Topics |
Prof. David Bernstein
|
Computer Science Department |
bernstdh@jmu.edu |
Reader
and Writer
classes that
can be used to decorate InputStream
and
OutputStream
objects
StringTokenizer
parse___()
MethodsString.split()
and
StringTokenizer
:
String
String.split()
and
StringTokenizer
:
split()
uses regular expressions,
StringTokenizer
uses a list of delimiterssplit()
returns an array,
StringTokenizer
is an
iterator
StringTokenizer
can return the delimiters
as tokens
StringTokenizer
and String.split()