java - Is there any way to create an array with two different values? -


i want create associative array (key, value) without using collections.

i saw many hashtable functions on internet found random index assignment single value @ time modular operations.

what want bidimensional array integer keys , string values allocating random index % operations each key.

i know can collections , hashtable objects, want own.

you can use 2 arrays. 1 array store keys while other array store values. , can make sure in myhashmap class implement methods in way both arrays updated when 1 updated.


Comments

Popular posts from this blog

angularjs - ADAL JS Angular- WebAPI add a new role claim to the token -

php - CakePHP HttpSockets send array of paramms -

node.js - Using Node without global install -