Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Kiswar Malik   on Jun 27 In Java Category.

  
Question Answered By: Dennis Hayes   on Jun 27

The problem is that "char" is not a class, is a
primitive type, so you can't call methods on a
"char" variable, if you want to convert a char
into an int, you can do this casting:

int index  = (int) alpha;

Share: 

 

This Question has 4 more answer(s). View Complete Question Thread

 
Didn't find what you were looking for? Find more on Error : "char cannot be dereferenced" Or get search suggestion and latest updates.


Tagged: