java - Username and Pass code using parallel arrays -


i trying create pass code , username login app designing. @ moment required have 4 users, , 4 separate pass codes relevant each user. code needs run in android emulator.

would have simple array structure easy follow?

as hristo said, should use hashmap

map<string, string> mymap = new hashmap<string, string>(); mymap.put("dmcg", "somepassword");  ...  string password = mymap.get("dmcg"); 

Comments

Popular posts from this blog

javascript - How to synchronize the Three.js and HTML/SVG coordinate systems (especially w.r.t. the y-axis)? -

javascript - How do I find how many occurences are there of a highlighted string, and which occurence is it? -

java - Reading data from multiple zip files and combining them to one -