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
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