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 !

hello , below is my code for the assignment: Write a program

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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!