Home > Archive > Java Help > March 2006 > Create a java.util.Map in JNI
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
Create a java.util.Map in JNI
|
|
| gautam.chavan@gmail.com 2006-03-27, 8:02 am |
| hello all,
Can anyone tell me how to create & use Java Maps in my C++
code...
I've used java.util.Vector, it works fine.
I work on a Sun Fire V440 machine.
regards,
gautam.
| |
| Oliver Wong 2006-03-28, 7:04 pm |
|
<gautam.chavan@gmail.com> wrote in message
news:1143464091.167312.273370@u72g2000cwu.googlegroups.com...
> hello all,
>
> Can anyone tell me how to create & use Java Maps in my C++
> code...
> I've used java.util.Vector, it works fine.
> I work on a Sun Fire V440 machine.
While Vector is a concrete class, Map is actually an interface, and so
cannot be instantiated. Perhaps you should look into java.util.HashMap or
java.util.TreeMap instead.
- Oliver
|
|
|
|
|