public static void main(){
int num = 0;
int[] numbers = {1, 2, 3, 4, 5};
System.out.println(numbers(num));
//so I expect 1 as the result, but get an error instead
}
Run Code Online (Sandbox Code Playgroud)