ArrayList
Java comes with a generic growable array. It is called
an ArrayList
.
import java.util.ArrayList;
void main() {
ArrayList<String> names = new ArrayList<>();
names.add("John Wick");
System.out.println(names);
}
Java comes with a generic growable array. It is called
an ArrayList
.
import java.util.ArrayList;
void main() {
ArrayList<String> names = new ArrayList<>();
names.add("John Wick");
System.out.println(names);
}