Help with an arrays assignment
I already figured out how to find the average and displaying it but i cant figure out how to display the numbers greater than the average.
This is what i have so far if it helps any
import java.util.Scanner;
public class ArraysAverage
{
public static void main(String[] args)
{
int[] list=new int[10];
int num = 0, bignum=0;
float sum = 0;
Scanner reader = new Scanner(System.in);
for(int i=0; i<list.length; i++)
{
System.out.print("Enter a number: ");
list[i] = reader.nextInt();
sum += list[i];
}
float avg = sum/list.length;
System.out.println("The average is: " + avg );
}
public static double Total(int[] list){
double Total = 0;
for(int i=0; i<list.length; i++)
{
Total += list[i];
}
return Total;
}
public static double average(int[] list, double Total){
double average = (Total/(list.length));
return average;
}
}

