Bookmark Topic Watch Topic
  • New Topic

More than one BufferedReader  RSS feed

 
Ray Anderson
Ranch Hand
Posts: 98
Java Oracle Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
This question is in I/O as well, nobody was replying so i posted here.

Hi,

I have a doubt about bufferedreader:

Can a single buffered object can read more than one console input ?

Suppose,



Thanks,
Ray
 
Christian Dillinger
Ranch Hand
Posts: 200
  • Mark post as helpful
  • send pies
  • Report post to moderator
Have a look into the Api Doc what BufferedReader#read does and check if that behaviour is useful to read a name.

=> use readLine() instead
 
Campbell Ritchie
Marshal
Posts: 56521
172
  • Mark post as helpful
  • send pies
  • Report post to moderator
Ray Anderson wrote:This question is in I/O as well, nobody was replying so i posted here.
. . .
Don't. Closing thread.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!