Seems to work for me...
import java.util.*;
public class Vowels2{
public static void main(String[] args){
Scanner console = new Scanner(System.in);
int counter= 0;
Type: Posts; User: Zula
Seems to work for me...
import java.util.*;
public class Vowels2{
public static void main(String[] args){
Scanner console = new Scanner(System.in);
int counter= 0;
Use console.nextLine(), as next returns only the first word of the input