Your method appears to trying to find whether f and d are the same, and they aren't.
Worthwhile reading the API: in particular read the compareTo() method and also the java.lang.Comparable<T> interface.
Hi can anybody help me? i have this piece of code and i get the error char cannot be dereferenced... im new at this..
this piece of code is in a method..and i have to count the total consonants in a word.. im trying to compare it to a string array of vowels.
Shaddy Krishnan wrote:Hi can anybody help me? i have this piece of code and i get the error char cannot be dereferenced... im new at this..
Considering that you posted onto this topic, we'll assume that you read the answers in this topic.... so... can you elaborate what you don't understand about the answers? Otherwise, we'll just be giving you the same answer that was already provided.