vendredi 27 février 2015

Get char from multi-string array



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?




Aucun commentaire:

Enregistrer un commentaire