( String Integer s).
You are converting an array Stringto List. Then you call contains()on it with the value int. Since the method accepts Objectas a parameter type, intgets autoboxed in Integer.
To fix this, write:
if(Arrays.asList(weekEnds).contains("" + i)) {
source
share