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.