Skip to content

Commit 4d93825

Browse files
authored
updated
1 parent 2d530a6 commit 4d93825

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

lessons/arraylist.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,8 @@ order: "4B"
55
section: "Arrays"
66
description: "learn arrays"
77
---
8-
## ArrayList in java
9-
The ArrayList class is in implementation of the list interface that allow us to create resizable array. In simple term we can say that ArrayList in java is dynamic array for storing the elements.
10-
It is just like the vector in c++.
8+
9+
The ArrayList class is in implementation of the list interface that allow us to create resizable array. In simple term we can say that ArrayList in java is dynamic array for storing the elements. It is just like the vector in c++.
1110

1211

1312
## Creating An ArrayList
@@ -136,7 +135,7 @@ class Main {
136135

137136

138137
// change the element of the array list
139-
languages.set(2, "Rohit");
138+
playerName.set(2, "Rohit");
140139
System.out.println("New ArrayList: " + playerName);
141140
}
142141
}

0 commit comments

Comments
 (0)