• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java

 
saravana kumar
Ranch Hand
Posts: 72
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 128
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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");
}
}
 
Cindy Glass
"The Hood"
Sheriff
Posts: 8521
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic