I need to only allow a user to enter a character from the a-z range. I was thinking of using an if statement but its not working out for me.
System.out.println("Please enter letters of the alphabet");
String input1 = scnObj.nextLine();
if (input1 != a-z) {
System.out.println("Please try again.");
}
else
{
System.out.println("Correct.");
}