I am trying to go through an array of Operators to see if one of the operators is located in the String.
For example:
String[] OPERATORS = { "<", "<=", ... };
String line = "a <= b < c ";
How would I go about going through a loop that checks to see if an operator is in the string?
Also, say my method found that "<" is located in the string at "<= "
However, I am looking for the actual string " <= ". How would I go about accounting for that?