Java (81-93) [array]

1. omitted format

Static initialization time format can also omit it

int[ ] arrayA={10,20,30};

Static and dynamic can be removed

int[] arrayB;

arrayB=new int[ ]{11,21,31};

2. Access array elements

3. Access array element assignment

Memory 4.java division

5. A memory array of FIG.

 

6. quote

Two references point to the same array

7. Frequently Asked Questions array, an array of cross-border problems

8. The null pointer problems

int[ ] array;

System.out.println(array[0]);

9. The length of the array is obtained

Name of the array .length

It is really an array of new applications, just in front of the name

10. The array traversal

array.fori

Array name .fori

11. The array of values ​​to obtain the most

12. The inversion of array elements

 

Published 24 original articles · won praise 6 · views 448

Guess you like

Origin blog.csdn.net/qq_39965800/article/details/103740976