Take this for example (excerpt from Java regex checker not working):
while(!checker) { matcher = pattern.matcher(number); if(matcher.find())
As long as checker is not null, you may use !checker as posted. This is possible since Java 5, because this Boolean variable will be autoboxed to the primivite boolean value.
checker
null
!checker
Boolean
boolean