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: Nixie Schmidt   on Jun 27

getNumericValue() is a method of the Character object, not the char  primitive.
Primitives have no methods. So your code  should be

int index  = Character.getNumericValue(alpha);

untested, but should work.

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: