Missing return statement when using .charAt [migrated]
- by Timothy Butters
I need to write a code that returns the number of vowels in a word, I keep getting an error in my code asking for a missing return statement. Any solutions please? :3
import java.util.*;
public class vowels
{
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
System.out.println("Please type your name.");
…