I kind of understand what you mean, but I do not know how to go about implementing a method like this.
Method I am trying to use from API
public boolean containsArray(CharSequence s)
...
Type: Posts; User: theaveguy
I kind of understand what you mean, but I do not know how to go about implementing a method like this.
Method I am trying to use from API
public boolean containsArray(CharSequence s)
...
I am looking for a method that works like "contains" but for arrays, so i want it to parse the array to see if any of the variables match with an if statement and if not return false.
Is there no...
This is how the contains method is defined
type boolean
method contains(CharSequence s)
description Returns true if and only if this string contains the specified sequence of char values.
I...
Any help? I would really like to get my program going, I was searching the String API Docs and only saw things pertaining to char/string nothing about array/sting.
Any help? I would really like to get my program going, I was searching the String API Docs and only saw things pertaining to char/string nothing about array/sting.
I am trying to find a method to read an array like this.
String[] operators = {"+", "-"};
if(operation.contains(operators))
System.out.println("noob");
else ...
I am trying to find a method to read an array like this.
String[] operators = {"+", "-"};
if(operation.contains(operators))
System.out.println("noob");
else ...