Status
Not open for further replies.

NoShirtstann

Veteran
Veteran
Joined
Nov 13, 2018
Messages
35
Reaction score
8
First Language
English
Primarily Uses
RMMV
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.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
6,064
Reaction score
7,167
First Language
Indonesian
Primarily Uses
RMVXA
Are you learning Javascript or are you learning Java?
Because both are different.
 

NoShirtstann

Veteran
Veteran
Joined
Nov 13, 2018
Messages
35
Reaction score
8
First Language
English
Primarily Uses
RMMV
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.
 

TheoAllen

Self-proclaimed jack of all trades
Veteran
Joined
Mar 16, 2012
Messages
6,064
Reaction score
7,167
First Language
Indonesian
Primarily Uses
RMVXA
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.
 

NoShirtstann

Veteran
Veteran
Joined
Nov 13, 2018
Messages
35
Reaction score
8
First Language
English
Primarily Uses
RMMV
Okay I will have to shift my learning over to JavaScript instead. Damn.. Lol

Thank you.

Mods this thread can be closed.
 

Tiamat-86

old jrpg gamer
Veteran
Joined
Dec 5, 2017
Messages
658
Reaction score
283
First Language
english
Primarily Uses
RMMV
@NoShirtstann to close a thread you click report on your 1st post in the thread and say its solved
 

Shaz

Global Moderators
Global Mod
Joined
Mar 2, 2012
Messages
41,297
Reaction score
14,275
First Language
English
Primarily Uses
RMMV
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.

This thread is being closed, due to being solved. If for some reason you would like this thread re-opened, please report this post and leave a message why. Thank you.

 
Status
Not open for further replies.

Latest Threads

Latest Posts

Latest Profile Posts

I haven't been on here in forever wow(missed my forum birthday T-T). Anyways, I'm dabbling in BGMs, here's something I'm actually willing to share.

Binge-watched 6 episodes of the Erased anime... And that means I've watched half of it?! Sigh...
I'm bad at base-building games (looking at other players created an aesthetically beautiful base compared to me), but IDK why I keep playing the game and seek more of it.
Pyra and Mythra in smash ultimate are way too OP. They're basically Smash 4 Bayonetta 2.0, and not in a good way. Very toxic and unfair. At least they're hot tho.
attack on titan keep reaching a new height with each episode, aaa I can't wait another week for a new episode at this point

Forum statistics

Threads
109,196
Messages
1,042,943
Members
141,695
Latest member
tatsuo
Top