I'm iterating over an ArrayList with String arrays inside.
["A","1"]
["A","2"]
["A","3"]
["B","1"]
["B","2"]
["B","3"]
How can I select only the ones with an "A" on the first position? Without iterating, and saving on a new array...
for (String[] key : keys){
}
Using a for each for example, what I want is, for the first iteration -> only work with the String Arrays with "A", second iteration -> only work with the String Arrays with "B".