Question: hello , below is my code for the assignment: Write a program to count the number of vowel in a text file. I want to
hello , below is my code for the assignment: Write a program to count the number of vowel in a text file. I want to try doing this way below. However, the counter doesnt work. Can you help me fix it ? Thank you in advance !

import java.io.*; rt java.util.Scanner; public class MainH public static void main (String[] args) throws FileNotFoundException String character String vowel "aeiou" int vowelCounter; int i-0; vowelCounter 0; Scanner fileScannew Scanner (new File("textfiles/china.txt")); while (fileScan.hasNext()) character-fileScan.next); for(i-0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
