Import java.util.arrays;
Notes on public classes {
Public static void main(String[] args) {
? int[] arrays=new? int[33];
for(int I = 1; I & lt34; i++) {
Array [i-1] = i;
}
int a = 0;
while(a & lt; 8) {
a++;
int I =(int)(math . random()* arrays . length);
system . out . print(arrays[I]+" \ t ");
Arrays[i] = array [arrays.length-1];
arrays = Arrays.copyOf(arrays,arrays . length- 1);
}
}
}
Extended data
C++ supports array data structure, which can store a fixed-size sequential collection of elements of the same type. An array is used to store a series of data, but it is usually considered as a series of variables of the same type.
The declaration of array is not to declare a single variable, such as number0, number 1, ..., number99, but to declare an array variable, such as numbers, and then use numbers[0], numbers[ 1], ... and the number [99] to represent a single variable. Specific elements in an array can be accessed through an index.
All arrays consist of contiguous memory locations. The lowest address corresponds to the first element, and the highest address corresponds to the last element.