0

What is the best way to validate all keyboard characters in Java ?

I would like to allow user to input all keyboard characters but restrict other non keyboard characters e.g copyright, etc. What is the java sudo code to do this validation ?

24th Sep 2019, 10:41 PM
Nik
1 Answer
0
If you are talking about eng chars only consider looking at ASCII table that gives you full info on all standard chars. If you want to use UNICODE, there is similar table. When you get input from the user, just compare the given input to the range of possible chars.
29th Mar 2020, 1:20 AM
Хомяче Неважно
Хомяче Неважно - avatar