Skip to content

Commit 414a99f

Browse files
committed
Java ArrayList
1 parent 888c433 commit 414a99f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

‎java-examples/java-core/src/test/java/com/hellokoding/java/collections/ArrayListInitializeTest.java‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,12 @@ public void initWithDoubleBrace() {
5656

5757
@Test
5858
public void initWithCapacity() {
59-
List<Integer> arrayList = new ArrayList<>(10000);
59+
List<Integer> arrayList = new ArrayList<>(1000);
6060

61-
for (int i = 0; i < 10000; i++) {
61+
for (int i = 0; i < 1000; i++) {
6262
arrayList.add(i);
6363
}
6464

65-
assertThat(arrayList).hasSize(10000);
65+
assertThat(arrayList).hasSize(1000);
6666
}
6767
}

0 commit comments

Comments
 (0)