Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Comparing two arrays

843785Dec 6 2008 — edited Dec 7 2008
Hi, I want to read text file into array. First line will be answerKey stored in character array and starting from second line down it will be records which I need to compare with the answerKey. For each same character I will add point and for each wrong character it will subtract point. Finally I need to process the points to get average for each record and display it. I have methods to compute the average, and display the results, but I don't know how to process the file into two arrays and compare them char by char? Any suggestion will be greatly appreciated.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 4 2009
Added on Dec 6 2008
23 comments
421 views