!= means Does not equal. So basically, while name does not equal 2, keep looping, which forces the user to press 2.
_________________________
http://www.javaspot.net