Could you help me with a problem please: Create an arrangement of the size that the user decides, fill the arrangement with numbers entered by the user, then calculate the subtraction from the last number entered until the first
package programa.pkg79;
import java.util.Scanner;
public class Programa79 {
public static void main(String[] args) {
Scanner lector = new Scanner(System.in);
int tam, resta=0;
System.out.println("Cuantos numeros quieres ingresar:");
tam = lector.nextInt();
int arre[] = new int[tam];
System.out.println("Ingrese los numeros:");
for(int i=0;i<tam;i++){
arre[i]=lector.nextInt();
}
//aquí estoy perdido no se como hacer la resta :(
}
}