Chapter 9
Text-based Java applicationsProgram
Inputsreamreader is = new inputstreamreader (system. In)
Bufferedreader BR = new bufferedreader (is)
S = Br. Readline ();
While (! S. euqal ("")){}
Flie F = new file ()
Filereader in characters
Bufferedreader Readline
Read a line of Characters in the unit of behavior
Filewriter writes data to the file in characters
Unicode characters cannot be modified when saving string objects
Stringbuffer class objects save modifiable UNICODE character sequences
Collection
Organize a group of objects in a set
Sub-interface
Set does not record the order in which elements are stored and repeated elements are not allowed.
List
Record the order in which elements are stored and repeated elements are allowed
Collection
Set list
Hashset arraylist Vector
Add method set method
The iterator interface defines functions such as traversal of elements contained in collection objects.