i want only the user to insert the letters x and X if not to display a message........actually i dont know how to do a validation in java can some one help
if (c != 'X' && c != 'x') System.out.println("Invalid entry. Try again.");