Leave a Reply 3

Your email address will not be published. Required fields are marked *


kevin

kevin

The correct answer should be B: 0 0 30 40

xxx

xxx

public class Access {
static String arg[] = {“lazy”, “Lion”, “is”, “always”};
public static void main(String[] args){
int numbers[];
numbers = new int[2];
numbers[0] = 10;
numbers[1] = 20;

numbers = new int[4];
numbers[2] = 30;
numbers[3] = 40;
for(int x:numbers){
System.out.println(” ” + x);
}

}
}

b

obrain

obrain

The correct answer should be B: 0 0 30 40