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
read / write data(string ,int,object) from file
create file
write into the file
read from the file
do logic
write to the console
------------------------------------------------------------
-stream
move data from onle place to the other place
from the source to destination
source could be file/console/socket
distination could be file/console/socket
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
read from the file
do logic
write to the console