Hmmm. Maybe console needs to be static.
Yep, now it works:
import java.util.*;
public class Vowels{
static Scanner console = new Scanner(System.in);
public static void main(String[]...
Type: Posts; User: javapenguin
Hmmm. Maybe console needs to be static.
Yep, now it works:
import java.util.*;
public class Vowels{
static Scanner console = new Scanner(System.in);
public static void main(String[]...
String.trim() will return a copy of the String without trailing and preceding whitespaces.
The number of vowels in that String should be the same as the full String that has the spaces.
...