I can't even remotely figure out how to do this : I have to make a method to print out the elements in an array, separated by ‘‘|’’
@param values, an array of integers.

Essentially its suppose to take user input, and then from there separate it with |. This is what I have so far. Any help chaps?


 

        
        int [] scans = new int [3];
    
    System.out.println("Enter 4 Numbers into the array: " );
    Scanner scanner = new Scanner(System.in);
    int s = scanner.nextInt();
    
    for (int i = 0; i < scans.length; i++)
    {
        scans [i] = scanner.nextInt();
    }