apuntes:arrays
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
apuntes:arrays [2019/02/15 13:05] – Santiago Faci | apuntes:arrays [2022/10/09 16:45] (current) – [Bucle for mejorado] Santiago Faci | ||
---|---|---|---|
Line 49: | Line 49: | ||
< | < | ||
- | {{ array1.png }} | + | {{ array1.jpg }} |
< | < | ||
Line 81: | Line 81: | ||
Los arrays se pueden pasar como parámetro a un método, y lo harán por referencia: | Los arrays se pueden pasar como parámetro a un método, y lo harán por referencia: | ||
- | <code java | + | <code java> |
int[] numeros = new int[5]; | int[] numeros = new int[5]; | ||
for (int i = 0; i < numeros.length; | for (int i = 0; i < numeros.length; | ||
Line 102: | Line 102: | ||
< | < | ||
- | {{ array2.png }} | + | {{ array2.jpg }} |
< | < | ||
Line 158: | Line 158: | ||
System.out.println(masNumeros.length); | System.out.println(masNumeros.length); | ||
</ | </ | ||
- | | + | |
* '' | * '' | ||
| | ||
Line 167: | Line 167: | ||
System.out.println(Arrrays.equals(numeros, | System.out.println(Arrrays.equals(numeros, | ||
</ | </ | ||
- | | + | |
* '' | * '' | ||
| | ||
Line 224: | Line 224: | ||
---- | ---- | ||
- | (c) 2019 Santiago Faci | + | |
+ | (c) 2019-{{date> |
apuntes/arrays.1550235937.txt.gz · Last modified: 2019/02/15 13:05 by Santiago Faci