java - HashMap string key -



java - HashMap string key -

i have bug in android app , can't find what's wrong, there think problematic , need help that.

i have next hashmap

hashmap<string, string> numbers = new hashmap<string, string>();

and i'm inserting info so,

numbers.put("1", "one" ); numbers.put("2", "two" );

then search this,

numbers.get("1");

is correct? please note above working fine except see weird behavior mentioned earlier

update, forgot add together " in put.

no, won't work. should putting , getting same type of keys.

perhaps meant

numbers.put("1", "one");

java android

Comments

Popular posts from this blog

formatting - SAS SQL Datepart function returning odd values -

c++ - Apple Mach-O Linker Error(Duplicate Symbols For Architecture armv7) -

php - Yii 2: Unable to find a class into the extension 'yii2-admin' -