I am new to java and we are task to make an insertion sort but I have a little problem with my codes I can't print my Sorted values I can't figure out where are my faults ...please help me. thank you
import java.util.Scanner;
public class Sorting {
public static void main(String[] args){
System.out.println("Enter 10 numbers to be sorted separated with spaces:");
String values = new Scanner(System.in).nextLine();
 String [] Vstring = values.split(" ");
 int [] num = new int[Vstring.length];
 for(int i = 0; i<num.length; i++){
    num[i]=Integer.parseInt(Vstring[i]);
     }
     }
     public static void insertionSort(int[] list, int n){
     for(int i = 0; i<n; i++)
      {
        int key = list[i];
        int j = i-1;
        while(j >=0 && list[j]>key){
            list[j+1] = list[j];
            j=j-1;
        }
        list[j+1] = key;
        }
        }
       public static void printValues(int [] list){
       for (int i = 0; i<list.length; i++){
           System.out.println(list[i]+"");
       }
      System.out.println();
     }
     }
 
     
     
     
     
     
     
    