View Single Post
  #2 (permalink)  
Old 03-30-2008, 09:31 PM
hardwired hardwired is online now
Senior Member
 
Join Date: Jul 2007
Posts: 1,141
hardwired is on a distinguished road
Code:
C:\jexp>javac isalpha.java isalpha.java:14: incompatible types found : boolean required: char char n = charinp.isAlphabetic(a); ^ 1 error
The expression on the right side of the equals sign returns a boolean value. The declaration on the left is for a char. This is a type mismatch.
Try:
Code:
boolean n = charinp.isAlphabetic(a);
Reply With Quote