Display occurrence of number based off user input... array, java
<p>I am trying to have a user enter in any amount of numbers they like then based upon their input use an array to count each occurrence of the numbers entered by the user. I know where i have my occurrence counter per say i am missing my return statement as that was one of the things i am  confused on, basically i am kind of stumped, yes this is homework and i do want to learn so i do not expect the full answer, just some input , thanks</p>

<p>package chapter_6;</p>

<p>import java.util.Scanner;</p>

<p>/**
 *
 * @author jason
 */
public class Six_Three {</p>

<pre><code>public static void main(String[] args) {
    Scanner input = new Scanner(System.in);
    int[] num = createArray();

    // prompt user for numbers
    System.out.println("Enter integers between 1 and 100: ");
    int data = input.nextInt();








}   
    // create array based off user input
    public static int[] createArray() {
        int[] num = new int[data];
        return num;
    }


    // count each occurence of input numbers from user   
    public static int[] countNumbers(int[] data) {
        for (int i = 0; i &lt; data.length; i++)
            return ?
    } 
</code></pre>

<p>}</p>
