Piers C
2010-10-26 14:24:53 UTC
_______________________
package mypkg;
/**
*
* @author piers
*/
public class Main {
public static String isAbecedarian (String word){
int index = 0;
char x = word.charAt(index);
char y = word.charAt(index++);
while (x
boolean truth = true;
}
if (x>y){
boolean truth = false;
}
return (truth);//cannot fix this error.
}
public static void main(String[] args) {
System.out.println (isAbecedarian("abcdef"));//should be true
System.out.println (isAbecedarian("abcaef"));//should be false
}
}
___________________________________________________