Java, java official website _ PHP Tutorial

Source: Internet
Author: User
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...

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.