JavaChallenge42

public class JavaChallenge42 {
public JavaChallenge42() {
}

public static void main(String[] args) {
int[] arr = new int[5];
int index = 0;
byte var10001 = index;
int index = true;
arr[var10001] = 3;
System.out.println("The value of first element is " + arr[0]);
System.out.println("The value of fourth element is " + arr[3]);
}
}
The value of first element is 3
The value of fourth element is 0
1. arr [index]
2. arr [index]= index
3. index = 3

--

--

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store