import collections in java
import java.util.Collection;
declaring collection java
import java.util.Collection;
import java.util.ArrayList;
Collection<Integer> fibonacci = new Arraylist<Integer>();
collections in java
Any group of individual objects which are represented as a single unit is known as the collection of the objects. In Java, a separate framework named the “Collection Framework” has been defined in JDK 1.2 which holds all the collection classes and interface in it.
how to define a collection in java
List<String> list = Arrays.asList("Lars", "Simon");
what is collection fromework
The Java collections framework is a set of classes and interfaces that implement commonly reusable collection data structures.
what type of collections used
Depending on the data that I am working with, I use
Arrays, Lists, Sets, Maps.
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us