Java and java official website. Java, java official website Javaint [] array1 {2,188,200,}; defines an array with the content of intindex0 of the chaotic size; defines the location of a maximum or minimum value.
Java
Int [] array1 = {2,188,200,}; // defines an array with the messy size int index = 0; // defines the position of a maximum or minimum value int keyValue = 0; // defines the maximum or minimum value int temp = 0; // defines a temporary storage variable for (int I = 0; I // cyclically loop all data indexes = I; // assign the I position to index keyValue = array1 [index]; // assign the value of the I position to the keyValue for (int y = I; y // loop all the variables again, but this time the starting length of the length is I, maximum length unchanged if (array1 [y] <keyValue) {// if the cyclic value is smaller than the I position value index = y; // The location is redefined as the current location keyValue = array1 [y]; // The minimum value is the current location} temp = array1 [I]; // assign the I position value to the temporary variable (maximum) array1 [I] = array1 [index]; // redefine the I position as index (minimum) location array1 [index] = temp; // redefine the maximum value to the index location to implement the swap process} for (int p = 0; p) {System. out. print (array1 [p] + "");}
What is ++ = in java?
What is JAVA?
Java is an object-oriented programming language that can write cross-platform application software. it is a Java programming language and Java platform (JavaSE, JavaEE, javaME. Java has excellent versatility, efficiency, platform portability and security. it is widely used in personal PCs, data centers, game consoles, scientific supercomputers, mobile phones and the Internet, it also has the largest developer community in the world.
Define Java int [] array1 = {2,188,200,}; // define an array with the messy size int index = 0; // defines the position of a maximum or minimum value...