MV Plugin Dictionary Help

Hey folks,

I'm trying to build a dictionary in my plugin that I can loop through and grab different values from.

I've build it the standard way I usually build it in Java, but for some reason I keep getting a Invalid Left-hand on assignment error.

Here is the code.

Code:
Hashtable<Integer, Integer> my_dict = new Hashtable<Integer, Integer>;
my_dict.put(1,2)

I'm not sure what I'm doing wrong here.

Any and all help appreciated.
Are you learning Javascript or are you learning Java?
Because both are different.
Honestly, did not know there was a difference. (self taught)

I take it I'm using the wrong format and will have to built it object based.
If you're aiming to make an MV plugin, then you're learning the wrong language.
If you're aiming to learn Java, then you're asking in the wrong place.
Okay I will have to shift my learning over to JavaScript instead. Damn.. Lol

Thank you.

Mods this thread can be closed.
Javascript and Java are completely different languages. This is probably what you're looking for: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Map
@NoShirtstann to close a thread you click report on your 1st post in the thread and say its solved
Mods this thread can be closed.
Please use the Report button on your post to ask for a thread to be closed. Mods aren't able to read every post in every thread and will miss it otherwise.

Thread closed

Original thread: https://forums.rpgmakerweb.com/threads/plugin-dictionary-help.132308/