Hello every body
i have a problem with Scanner class.So my question is that when we use BufferedReader
orInputStreamReader
to reading and writing input and output then we use close()
method to close the stream but in the case of Scanner
why we do not close the stream this is my question
and second question is that difference between flush()
and close()
methods