public class Main {
public static void main(String[] args) {
int[] x = {1, 2, 3};
increase(x);
Reverse rev = new Reverse();
rev.reverse(x);
System.out.println(x[0] + " " + x[1] + " " + x[2]);
}
//Increase every element in the array by 1
//For example: array : 0, 1, 2 will become 1, 2, 3
public static void increase(int[] a) {
//TODO: FILL ME
}
}
class Reverse {
//Reverse the array
//For example: array 0, 1, 2 will become 2, 1, 0
public void reverse(int[] a) {
//TODO: FILL ME
}
}
What does increase(x); do ? Basically I have to fill in where he wrote fill in. But its kind of hard when i dont even understand what is going on.