This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
docs.oracle.com wrote: public void print(String s)
Print a string. If the argument is null then the string "null" is printed. Otherwise, the string's characters are converted into bytes according to the platform's default character encoding, and these bytes are written in exactly the manner of the write(int) method.
s - The String to be printed
Ritesh raushan wrote:but i did'nt undestand...this is has-A relationship but where the object of PrintStream class is creating.
What is there, you did not understand? It simply says that the System class has an object "out" of PrintStream class. You have already shown the code there. If you are worried about the initialization of "out",then
shows you how "out" is reassigned
Programming is about thinking, NOT coding
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com