title: Trouble with Java vowel counter
body: <p>I am having trouble getting my vowel counter to run in the for loop I created for this cap. Here is my code: </p>
  
  <pre><code>//java app that counts vowels using a forloop
  import java.util.Scanner;
  public class App {
  
  public static void main(String[] args) {
  Scanner ent=new Scanner(System.in);     
  String string1; 
  System.out.println("Entered a letter:");
  string1 = ent.nextLine();}
  
  
  public static int numberVowels(String string1){
      int count=0;
      int vowels=0;
      int consonants=0;
      for(int i=0; i&lt;string1.length(); i++){
  
          char ch=string1.charAt(i);
          if(ch=='a' || ch=='e' ||ch=='i' ||ch=='o'||ch=='u' ){
  
              vowels++;
              return ch=ch+vowel;
          }else{
  
              consonants++;
          }
      }
  
  }
  </code></pre>
  
  <p>}</p>
  
  <p>It says that there is no return type but I do have a return type. What am I doing wrong</p>