import java.io.*;
 
public class ArayKo{
  public static void main(String[] args) throws IOException{
    BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
    System.out.print("How many elements you want to enter in the array: ");
    int num=0;
 
    try{
      num = Integer.parseInt(in.readLine());
    }
    catch(NumberFormatException ne){
      System.out.println(ne.getMessage() + " is not a number!");
      System.exit(0);
    }

Hi, im new to this language and need help how to produce this output

Enter number of Arrays:
Num[0]:__
Num[1]:__

Where number of arrays will depend on user input on screen and will print it in ascending, descending order and will show the highest and lowest input in the array! Please lighten up...thanks !