Skip to Main Content

Java Programming

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!

Array required, but java.lang.String found..what does this mean???

807605Oct 15 2007 — edited Oct 16 2007
Hi friends,
For the following piece of code :

bold
for(int i=1; i <= studentClasses.length(); i++) {
if (UICClassID.equals(studentClasses)){
canTakeThisCourse = false;
return canTakeThisCourse;
break;
}
bold

where, studentClasses is an array and UICClassID is a string variable.

Can anyone explan me why I get this error , "Array required, but java.lang.String found" ??
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Nov 13 2007
Added on Oct 15 2007
14 comments
3,911 views