how do I store a void in to an array?

for my example:
count (String text) into int[] letter.

is there a quick and easy opportunity to do it or should I rewrite it completely?

I really appreciate your help

my code:

```
public static void main (String [] args){
    String text="E";

    String[] words = split(text);
    int[] letter = count(text);
    someWords(words, letter);
}   

public static int[] count(String text){
    int count;

    for (char letter=(char)65;letter<=90;letter++){
        count=0;

        for (int i=0; i<text.length(); i++){

            if (letter==text.charAt(I) || (letter+32)==text.charAt(I)){
            count++;
            }

        } 
            if (count>0){
            System.out.println(letter+" = "+count);
            }

    }

}

```