mirror of
https://github.com/Snailclimb/JavaGuide
synced 2025-06-25 02:27:10 +08:00
Update ArrayList-Grow.md
Modified the print method of ArraycopyTest
This commit is contained in:
parent
5a9f2d451c
commit
398405c2d7
@ -223,7 +223,7 @@ public class ArraycopyTest {
|
|||||||
System.arraycopy(a, 2, a, 3, 3);
|
System.arraycopy(a, 2, a, 3, 3);
|
||||||
a[2]=99;
|
a[2]=99;
|
||||||
for (int i = 0; i < a.length; i++) {
|
for (int i = 0; i < a.length; i++) {
|
||||||
System.out.println(a[i]);
|
System.out.print(a[i] + " ");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user