>What about the startsWith(String prefix) method?
You can to use startsWith. But you have to use for each letter. For example:
if(s.startsWith("a") || s.startsWith("e") ||...
Type: Posts; User: tiagoufrj
>What about the startsWith(String prefix) method?
You can to use startsWith. But you have to use for each letter. For example:
if(s.startsWith("a") || s.startsWith("e") ||...
You code don't work because you forget of to write b.charAt(d-1). You wrote only (d-1).
if(((e=='a')||(e=='e')||(e=='i')||(e=='o')||(e=='u'))&&(b.charAt(d-1)==' ')&(d!=0))
...