I have written the code for the first part, but it counts the number of vowels with repetitions included, but I also want to know how to count the number of vowels without repetitions.

Also I am struggling to write the second part of the code, that is, report the sum of vowels.

Here's what I have written so far:

```
import java.io.*;
public class CountVowel {

    public static void main(String[] args) throws IOException {
        BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
        System.out.println("Enter the string:");
        String s = br.readLine();
        int l = s.length();
        char ch;
        int i;
        int count = 0;
        for(i = 0; i < l; i++)
        {
            ch = s.charAt(i);
            if (ch == 'a' || ch == 'e' || ch == 'i' || ch == 'o' || ch == 'u')
            {
                count=count+1;
            }
        }
        System.out.println("The number of vowels are:"+count);
    }
}

```