Take this for example (excerpt from Java regex checker not working):
while(!checker) { matcher = pattern.matcher(number); if(matcher.find())
Using direct conditions (like ==, !=, !condition) will have a slight performance improvement over the .equals(condition) as in one case you are calling the method from an object whereas direct comparisons are performed directly.