• Post Reply Bookmark Topic Watch Topic
  • New Topic

deference error  RSS feed

 
Ed Palazo
Ranch Hand
Posts: 40
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

all that i am having problems with is trying to make it so that the print statement prints the initials out (which it does) but then always in lowercase.  please help!  i get a deference error.

 
Henry Wong
author
Sheriff
Posts: 23295
125
C++ Chrome Eclipse IDE Firefox Browser Java jQuery Linux VI Editor Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rayan Vakil wrote:
please help!  i get a deference error.


A char variable is *not* a reference variable. You can't dereference it to call methods.

Henry
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!