Search:

Type: Posts; User: tiagoufrj

Search: Search took 0.11 seconds.

  1. [SOLVED] Re: Program to find how many letters start with vowels

    >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") ||...
  2. [SOLVED] Re: Program to find how many letters start with vowels

    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))

    ...
Results 1 to 2 of 2