File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Make it so: Java DB Connections & Transactions this week in the JDBC 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 ?
It's not a secret anymore!