You would be better off using a HashMap for username's and passwords. HashMaps store data in using keys. If you had this HashMap:
{"billybob"="password", "sk8rboi69"="password#2"}
You could access the data by using .get("billybob").
Example
HashMap<String, String> users = new HashMap<String, String>(); //<type of key, type of value>
users.put("billybob", "password");
System.out.println(users); // {"billybob"="password"}
System.out.println(user.get("billybob")); // "password"