Well-off accompany you to learn the summary of the Java--------array

Source: Internet
Author: User

Since this period of time has been learning Android, seemingly a long time did not update the Java blog, today continue our array summary.

1. An array is a data type consisting of a set of variables of the same type, represented by a common name. The array is divided into one-dimensional, two-dimensional and multidimensional arrays according to the complexity of the storage elements.

2, using the array in Java, you must go through two steps: (1) declare an array, (2) open up memory to the array.

3, in Java to get the length of the array (that is, the number of array elements), you can use. length to complete.

4. If you want to assign an initial value to an array at the time of declaration, simply append the initial value to the declared format of the array.

5. Java allows the number of elements in each row in a two-dimensional array to be different.

6, in a two-dimensional array, if you want to get the entire array of rows, or the number of elements of a row, you can also take advantage of. length to get.

7, method overloading: In the same class allows the existence of more than one method of the same name, as long as they have a different number of arguments or types. In this case, the method is called overloaded, and this process is called the overloading of the method.

Well-off accompany you to learn the summary of the Java--------array

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.