Helpp! New to programming (loops are my nightmare) ! Working with arrays? Bubble sorting? : I'm doing this assignment where by using the Bubble Sort Algorithm, create a program that asks a user for a number of integers.  
The program will then ask the user to input as many integers as the user requested and fill the values of the arrays into it.  
Afterwards, the program user output the following:

a. Show Number List from File (Unsorted)
b. Show Sorted List
c. Show Greatest number
d. Show Smallest Number
e. Show the Median Value
f. Show the Average Value

So far I have this :


import java.util.Scanner; 
public class Bubbles {
    
    public static void main(String[] args) 
    {
        //Declare Variables
        String strUser;
        int intSize;
        int[] intNum; 
        
        //Input
        Scanner scn=new Scanner(System.in); 
        
        //Process/Output
        System.out.println("Please enter the number of values you would like to enter:"); 
        strUser=scn.nextLine();
        
        intSize=Integer.parseInt(strUser);
        
        intNum=new int [intSize]; 
        
        for(int i=0; i < intNum.length; i++)
        {
            System.out.println("Please enter for index value of "+i+":");
            intNum[i]=scn.nextInt(); 
            
        }
        
    }
    
}


which outputs this (for example):

    Please enter the number of values you would like to enter: 3
    Please enter for index value of 0:
    47
    Please enter for index value of 1:
    89
    Please enter for index value of 2:
    42
    BUILD SUCCESSFUL (total time: 13 seconds)

Now how do I get all these inputed numbers into an array so I can be them in a list, and then use the bubble sorting to order them, and so on..

 Like this:

    Unsorted order:
    47,89,42
    Sorted order:
    42, 47, 89

I'm so lost, I know.




