Question: ublic static void getChar ( ) { if ( i < inputArray.length ) { / / Checks if there is another character in the array

ublic static void getChar(){ if (i < inputArray.length){//Checks if there is another character in the array if (Character.isLetter(inputArray[i])){ nextChar = inputArray[i]; //Sets nextChar to the index where i currently points to. charClass = LETTER; i++; //Points to the next character in the array if there is one } else if (Character.isDigit(inputArray[i])){//Student needs to complete this part. } else {//Student needs to complete this part. }} else {//If i >= inputArray.length, there are no more characters available. charClass = EOI; }}

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!