Well off with you to learn JAVA -------- array summary, java -------- Array

Source: Internet
Author: User

Well off with you to learn JAVA -------- array summary, java -------- Array

 

Since I have been learning Android for a long time, it seems that I haven't updated my blog on JAVA for a long time. I will continue to my array summary.

 

 

1. arrays are data types composed of a group of variables of the same type. They are represented by a common name. Arrays are classified into one-dimensional, two-dimensional, and multi-dimensional arrays based on the complexity of storing elements.

2. To use an array in Java, you must follow two steps: (1) Declare the array and (2) Open the memory to the array.

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

4. If you want to assign an initial value to the array during declaration, you only need to add the value of the initial value after the declaration 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 obtain the number of rows of the entire array or the number of elements of a row, you can also use. length to obtain the number.

7. Method overloading: more than one method with the same name can exist in the same class at the same time, as long as their parameter numbers or types are different. In this case, this method is called overload. This process is called method overload.


(Java) in the student achievement management system connected to the database, how do I write the program that changes student information on the administrator interface? Urgent !!!

Update student (student table name) set stuName = 'zhang' where stuId = 5
 
1. Summarize the relationship between array usage and loop structure 2. Range of array usage

1. loop statements are usually used to assign values to an array or to output all elements of an array. One array uses one counting variable, and two-dimensional arrays, and so on (except for character arrays ).
2. Arrays can be used to process a large number of variables of the same type. Arrays can also process strings.

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.