Java IO System
, Java IO system
Java IO system is concerned with getting Input from the
Keyboard
The objective of this system is to make a java program an
interactive program
,Terminology
Token: String of characters separated by delimiting
character
A token can be a block of text or a single symbol e.g a
reserved word (such as int or while), an identifier (such
as b or sum), a constant (such as 25 or "Alice in
Wonderland"), a delimiter (such as { or ;) or an operator
(such as + or =).
Parsing the string: The division of text into a set of
discrete parts, or tokens, which in a certain sequence can
convey a semantic meaning. The Class StringTokenizer is
used to parse strings
, Terminology
A Delimiter: a character used to separate items of data stored
on a computer.
It is used to tell computers to finish processing one piece of
data and move on to the next one.
Most delimiters are characters that will not be used in the
data, such as spaces or commas.
Java use Whitespace by default space
Examples of white space characters include: tab, newline and
space