Integer sequence
Could someone explain for example this
int min = u[1]; int sum = u[1]; for (int i = 2; i < u.length; i++)And this
if (u[i] < min) min = u[i]; sum += u[i];And this
int[] u = new int[10 + 1]; System.out.println("enter 10 integers in a row:"); for (int i = 1; i < u.length; i++) u[i] = in.nextInt();
3 Replies