How do I get the index of a single word (represents in a char array) which can be found in a paragraph (again represents in a char array).
the char represents the ...
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 ...
Hi all, I am very new to Java (Semester 1 of university) and I am having trouble trying to figure out an algorithm to search a char array with another char array to find word matches. I have tried using two for-loops and finding word matches like so: Java Code: public static void main(String[] args) { String textToSearch = "the quick ...
You, sir, get a cookie! I was certain there was a much easier way to do this. I guess I should laugh about it and take it all in as a learning experience. I spent about 12 hours working on this yesterday. Each time I had an idea I got snug up on incompatible types. I finally got to the point ...