String loginInfo[][] = { { "mason", "dragon" }, //First Column is usernames, second is passwords.
{ "shay", "stowers" },
{ "admin", "password" }, };
This is my array that has the username in the first col, passwords in the second col. I want to be able to add another row to this array once a user has submitted two strings.
Example...
String input1 = "username", String input2 = "password";
I want to take these two Strings and add them as a row, to the array. So my end result would look like this..
String loginInfo[][] = { { "mason", "dragon" },
{ "shay", "stowers" },
{ "admin", "password" },
{ "username", "password" }, };//This coming from input1 and input2
java.util.CollectionsFramework.List<List<String>>.Mapin theCollections API.