Skip to content

Commit 577e6a7

Browse files
authored
Update arraylist-source-code.md
1 parent 506532c commit 577e6a7

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

docs/java/collection/arraylist-source-code.md

-1
Original file line numberDiff line numberDiff line change
@@ -922,7 +922,6 @@ public class EnsureCapacityTest {
922922
public static void main(String[] args) {
923923
ArrayList<Object> list = new ArrayList<Object>();
924924
final int N = 10000000;
925-
list = new ArrayList<Object>();
926925
long startTime1 = System.currentTimeMillis();
927926
list.ensureCapacity(N);
928927
for (int i = 0; i < N; i++) {

0 commit comments

Comments
 (0)