else if (!strEmail.toUppercase.charAt(0) < 'A' || !strEmail.toUppercase.charAt(0) > 'Z')
{
JOptionPane.showMessageDialog(null, "Must start with A through Z or a through z");
}
I tried doing that but I kept getting an error message. Should I just use charAt alone? Am I better off using indexOf to check if the string or email starts with a letter lower case or upper. I was thinking combining index and char, but I tried that, and it didn't work.