This simple program should ask for text, display it and quit if I type "q", but it doesn't quit. Anyone could please explain why?
This is what happens:
l$ java Regex1
Input?: hh
Input is: hh
Input?: q
Input is: q
Input?: ^C
At the end I just have to CTRL+C to kill it.