Need help to debug this code, please đ!
Task: 1. Enter the number n from the console; 2. Enter an array of 10 numbers from the console; 3. Process the array as follows: multiply element 1 by element 10, element 2 by element 9, and so on. 4. Print the resulting array to the console. My attempt: package General; import java.util.*; import static java.lang.System.*; public class Main { public static void main(String[] args) { // write your code here out.print("Enter the size of array: "); Scanner number = new Scanner(in); int arraySize = number.nextInt(); int[] array = new int[arraySize]; int len = array.length; int i = 0; while (i < len) { array[i] = number.nextInt(); i++; } out.println(Arrays.toString(array)); for (int a = 0; a < len; a++) { for (int b = len-1; b > 0; b--) { array[i]=array[a] * array[b]; } } out.print(Arrays.toString(array)); } } I wrote it in Intellij