title: How to stop a while loop if the user entered a special character
body: <p>I'm writing a program in java and I'm getting some numbers from the user and I wanna say if the user entered '#' exit the while loop.
  Any help is appreciated.</p>