
-----------------------------------
Ninja
Fri Apr 07, 2006 10:09 am

Checking Name Legitimacy
-----------------------------------
I am writing a program in my Java class. And using arrays and getchars, I am attempting to confirm the legitimacy of the characters through the use of ascii tables.

so essentially, it writes the characters into an array, then runs a huge if to ensure that the characters are within the bounds of Capital Letters and Lowercase. Symbols and numbers are to be ignored. I have this code done so far, but did it a bit back, and I thought you compare a string straight to its numeral ASCII counterpart

while (Namecheck == 1) //For Loop for Future.
                {
                    //c.println ("DEBUG2");
                    //[Compares each Character to the referenced numbers on Ascii table, eg. 65 - 90 = Capital Alphabet.Checks to ensure that characters entered for name are all letters, < Enter > , < Space > or < del >
                    while (AC = 65 && Namearray [AC] = 97 &&
                                Namearray [AC] 