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!

char cannot be dereferenced

843789Sep 14 2009 — edited Sep 14 2009
1) Why does
String lines = // Some String
if(lines.charAt(0).isLetter()){
    ...
}
yeild error
char cannot be dereferenced
2) How can this be fixed? Searching on the net has not proved useful.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Oct 12 2009
Added on Sep 14 2009
2 comments
721 views