Print a Java String

abhi123 ac0030313@techmahindra.com
Tue Feb 5 13:15:00 GMT 2008


Thanks David for your inputs
After catching the Exception Object say e
In java we usually do System.out.println(e) which in turn invokes
e.toString() which returns a String

My problem is in my main (i.e. C++)
I am able to catch this e but cout<<e->toString() displays a address or some
hex output but I want to display the toString output. Is there a way to do
this any help is much appreciated.
-- 
View this message in context: http://www.nabble.com/Print-a-Java-String-tp15289889p15289889.html
Sent from the gcc - java mailing list archive at Nabble.com.



More information about the Java mailing list