Define a method like this:
public boolean checkIfContains(String operation, String[] operators) {
Usage:
if(checkIfContains(operation, operators))
Type: Posts; User: Norm
Define a method like this:
public boolean checkIfContains(String operation, String[] operators) {
Usage:
if(checkIfContains(operation, operators))
The fastest way to see if there is a method in the string class that works this? is to read the API doc.
There is not a method for every possible way of using a class. You will have to write your...
The operation variable is a String. You have to use the methods that the String class has, you can't make them up.
If you write your own class then you can write your contains() method to take a...
if(operation.contains(operators))
How is the contains() method of the class for operation defined? You should be able to define the contains method to take a String array.
Are you writing the...