So, my homework is to form a program that prompts the user for five to ten numbers all on one line, separated by spaces, calculates the average of those numbers, and displays the numbers and their average to the user. 

The first method should take no arguments and return a String of numbers separated by spaces.

The second method should take a String as its only argument and return a double (the average).

The third method should take a String and a double as arguments but have no return value.

---

My issue is I have no clue how to calculate the average in a different method along with printing my results. I've just learned methods so I'm still trying to figure them out.

This is what I have so far and I know I have errors:

```
import java.util.Scanner;
public class CalculateAvg {

    public static void main(String[] args) {
        String userinput = getuserinput();
    }

    public static String getuserinput() {
        // Read inputs and change string to double
        Scanner in = new Scanner(System.in);
        String userinput;

        System.out.println("Please enter 5 to 10 numbers seperated by spaces: ");
        userinput = in.nextLine();
        double numbs = Double.parseDouble(userinput);
        return userinput;
    }
    // Problem is here. 
    public static double mySum(String sum, String userinput) {
        double avg = 0;
        double count = 0;

        double value = Double.parseDouble(sum);
        sum = sum + userinput;
        count++;
        avg = sum / count;

        return avg;
    }
}    

```