This week's book giveaway is in the Reactive Progamming forum. We're giving away four copies of Reactive Streams in Java: Concurrency with RxJava, Reactor, and Akka Streams and have Adam Davis on-line! See this thread for details.
I am restricting user to enter any other character to TextField. I am also restricting user to enter more than 15 character in firstName and lastName field. My code is workng for all other character other than alphabets. But, it's not working for Shift, Alt, Backspace, and Capslock key. It's counting keystrok++ rather than keystroke --. Please check my code as follow: