File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
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
JavaRanch » Java Forums » Java » Java in General
Bookmark "Java" Watch "Java" New topic
Author

Java

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:
import java.io.*;
class a{
public static void main(String s[]){
FileOutputStream out = new FileOutputStream(FileDescriptor.out);
PrintStream p = new PrintStream(out);
p.print("Hello");
}
}


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

Joined: Sep 29, 2000
Posts: 8521
saravanakumarj,

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.
Thanks,
Cindy


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java