This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]