I cannot figure out what the problem with this is. It is supposed to count the number of e's in a sentence but it keeps going into infinite loops every time I try to run it.
public class wordStuff
public static int countEs(String sent)
return numE;while(sent.substring(oneUPe,sent.length()).indexOf ("e")>=0)
}}public static void main(String args)