I have a declaration of a ArrayList T
ArrayList<Integer> T = new ArrayList<Integer>();
And i have a while loop which should be active until the list will be composed of only -1 int's. Currently it looks like this:
while(T.contains(!-1))
As you probably guessed it. It does not work properly since i can't use negation on a integer.
-1s. andcontains()won't help there.