(String[] args)
| 16 | } |
| 17 | |
| 18 | public static void main(String[] args) throws java.lang.Exception { |
| 19 | Scanner sc = new Scanner(System.in); |
| 20 | int n = sc.nextInt(); |
| 21 | int arr[] = new int[n]; |
| 22 | |
| 23 | // Inputing the Array |
| 24 | for (int i = 0; i < n; i++) { |
| 25 | arr[i] = sc.nextInt(); |
| 26 | } |
| 27 | sc.close(); |
| 28 | |
| 29 | // Sorting |
| 30 | arr = code.bSort(arr, n); // Creating an object of the class |
| 31 | |
| 32 | // Printing the Array |
| 33 | System.out.println("New Array: "); |
| 34 | for (int i : arr) { |
| 35 | System.out.print(i + " "); |
| 36 | } |
| 37 | } |
| 38 | } |