can you search, for example, between position 5-10 in the List array?
as?
in this case I need to search between positions 1-5, 5-10, ... and I want to avoid other lists
EDIT: I have something like this
if (pp.move(i).subList(5, 10).contains(pn50.getText())) {
but I have a problem with this code, I need to call a method like:
if (pp.move(i).suit().subList(5, 10).contains(pn50.getText())) {
but I get an error: the subList (int, int) method has an undefined value for the String type, thanks !!
source
share