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]

Re: Print a Java String


>>>>> ">" == abhi123  <ac0030313@techmahindra.com> writes:

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

You need to convert the Java String to a C string.  See the CNI manual
for some information on this; it is pretty similar to how you would do
it using JNI.

Tom


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