Win a copy of OCP Java SE 8 Programmer II Exam Study Guide this week in the OCP forum!
    Bookmark Topic Watch Topic
  • New Topic

More than one BufferedReader  RSS feed

 
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
 
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
 
Marshal
Posts: 58336
178
  • 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!