0% found this document useful (0 votes)
26 views2 pages

Core Java Day9

The document covers core Java concepts including collections such as ArrayList, Map, stack, queue, and linked list. It also discusses file handling techniques for reading and writing data, as well as stream operations for transferring data between sources and destinations. Additionally, it details methods for reading and writing strings using various classes like FileReader and FileWriter.

Uploaded by

darshandb941
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
26 views2 pages

Core Java Day9

The document covers core Java concepts including collections such as ArrayList, Map, stack, queue, and linked list. It also discusses file handling techniques for reading and writing data, as well as stream operations for transferring data between sources and destinations. Additionally, it details methods for reading and writing strings using various classes like FileReader and FileWriter.

Uploaded by

darshandb941
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 2

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

You might also like