wood burning stoves 2.0*
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 Android Security Essentials Live Lessons this week in the Android 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:
import java.io.*;
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
wood burning stoves
subject: Java
Similar Threads
Servlet Taking 45 seconds to respond.
Doubt in System.out.print().
Japanese character from the request stored in question mark in the DB
How to define unicode character?