Use toCharArray() method on the 2 Strings.
Then use for loop and compare the Student's answer against actual answer.
score = 0;
for(i=0;i<actual.length;i++){
if(student[i] == ' ') { /* do...
Type: Posts; User: tombstone
Use toCharArray() method on the 2 Strings.
Then use for loop and compare the Student's answer against actual answer.
score = 0;
for(i=0;i<actual.length;i++){
if(student[i] == ' ') { /* do...