This week's book giveaway is in the OCMJEA forum.
We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara on-line!
See this thread for details.
The moose likes I/O and Streams and the fly likes Character Stream ? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA forum!
JavaRanch » Java Forums » Java » I/O and Streams
Bookmark "Character Stream ?" Watch "Character Stream ?" New topic

Character Stream ?

veena bijur
Ranch Hand

Joined: May 16, 2011
Posts: 67
why does not it print character entered from keyboard ,when used PrintWriter instead of System.out.print()

if i use System.out.print() it displays,why not printWriter object?
meeta gaur
Ranch Hand

Joined: Dec 05, 2012
Posts: 305

You should flush buffer to make it empty.

My one regret in life is that I am not someone else.
- Woody Allen
I agree. Here's the link:
subject: Character Stream ?