Core Java Day9
Core Java Day9
collection
arraylist
add integer
add string
add object
al
for each
iterator
Map
stack
queue
linked list
-------------------------------------------------------------------
file handling
class collections
{
void sort(s,al)
{
s.compare(s1,s2)
File handling
create file
------------------------------------------------------------
-stream
move data from onle place to the other place
from the source to destination
InputStream- read
outputStream-write
---------------------------------------------------------------------
- read write /string ,sequence of char
char based read write
FileReader- read
inputStreamReader
BufferedReader
FileWriter- write
BufferedWriter
inputStreamWriter
---------------------------------------------------------------------
1) read write string
create file
read from the console
write string into the file