This content has been marked as final. Show 5 replies
pankajjaiswal10 wrote:No need to traverse the array, you can simply access index 2 of it (before checking if there are at least 3 elements in it, of course). But, my guess is that is what you actually meant.
Yes you can split the line into an array and then you can traverse the array to find the location of "green"
notforgoogle wrote:would be the sole requirement, you are, of course, right.
Is there a way of identifying that green is in the 3rd column of this line,
However, later on OP says:
notforgoogle wrote:which could be interpreted in such a way that traversing the array would be necessary.
I need to be able to get the position of "green",