This is the mail archive of the
java@gcc.gnu.org
mailing list for the Java project.
Print a Java String
- From: abhi123 <ac0030313 at techmahindra dot com>
- To: java at gcc dot gnu dot org
- Date: Tue, 5 Feb 2008 05:15:28 -0800 (PST)
- Subject: Print a Java String
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.