Lets say I have a char array that contains the sequences of chars: "robots laser car" I want to search for spaces in this char array in order to identify each separate word. I wanted to do something like this pseudocode below:
for lengthOfArray if array[i].equals(" ") doSomething();
But I cant find array methods to that comparison.