permaculture playing cards
The moose likes Java in General and the fly likes Java Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java" Watch "Java" New topic


saravana kumar
Ranch Hand

Joined: Jun 25, 2002
Posts: 72
how to display output data rathee than using System.out.println. Is there any alternative way to display output data on screen?
Snigdha Solanki
Ranch Hand

Joined: Sep 07, 2000
Posts: 128
Try this:
class a{
public static void main(String s[]){
FileOutputStream out = new FileOutputStream(FileDescriptor.out);
PrintStream p = new PrintStream(out);

Snigdha<br />Sun Certified Programmer for the Java™ 2 Platform
Cindy Glass
"The Hood"

Joined: Sep 29, 2000
Posts: 8521

Please change your name to be compliant with JavaRanch's naming policy.
Your displayed name should be 2 separate names with more than 1 letter each. We really would prefer that you use your REAL name.

"JavaRanch, where the deer and the Certified play" - David O'Meara
I agree. Here's the link:
subject: Java
It's not a secret anymore!