I have a string array which looks like:
String[] rows = {"AAA","BBB","CCC"};
How can I get a specific index of a certain row?
If I do rows[6] i get an out of bounds ex.
However when I do rows[2] i get the entire CCC string.
Do I have to get the row first, then get a specific char? Or can I not just grab it from the array?
rows[6]to return? You've got an array of strings - so when you access that array by index, you do indeed get the whole string - and then you can get the character within that string usingcharAt.B. But seeing as its an array, that was silly to think it would return a single letter...