Program to Convert Set to List in Java
Java Set is a part of java.util package and extends java.util.Collection interface. It does not allow the use of duplicate elements and at max can accommodate only one null element....
read more
Difference between ArrayList and HashSet in Java
Here are couple of differences between ArrayList and HashSet....
read more
How to get a list of files from the FTPserver?
As know FTP is a reliable protocol used for transferring files over the Internet. Though it is not a secure protocol, and all the data is transmitted in clear text. But it is reliable enough protocol and send the data from a sender to receiver over Internet. The code talks about getting the names of the all the files you wish to read from on a FTP server using the following process:...
read more
Program to Convert a Vector to List in Java
Given a Vector, the task is to Convert Vector to List in Java...
read more
Convert List of Characters to String in Java
Given a list of characters. In this article, we will write a Java program to convert the given list to a string....
read more
Get first and last elements from ArrayList in Java
Given an array list, find the first and last elements of it....
read more
Difference Between LinkedList and LinkedHashSet in Java
In this article you will learn difference between LinkedList and LinkedHashSet in java....
read more
How to remove a SubList from a List in Java
Given a list in Java, the task is to remove all the elements in the sublist whose index is between fromIndex, inclusive, and toIndex, exclusive. The range of the index is defined by the user....
read more
Remove repeated elements from ArrayList in Java
Prerequisite: ArrayList in Java...
read more
Initialize an ArrayList in Java
ArrayList is a part of collection framework and is present in java.util package. It provides us dynamic arrays in Java. Though, it may be slower than standard arrays but can be helpful in programs where lots of manipulation in the array is needed....
read more
Program to Convert List to Map in Java
The List is a child interface of Collection. It is an ordered collection of objects in which duplicate values can be stored. Since List preserves the insertion order, it allows positional access and insertion of elements. List Interface is implemented by ArrayList, LinkedList, Vector and Stack classes....
read more
Program to convert List of String to List of Integer in Java
The Java.util.List is a child interface of Collection. It is an ordered collection of objects in which duplicate values can be stored. Since List preserves the insertion order, it allows positional access and insertion of elements. List Interface is implemented by ArrayList, LinkedList, Vector, and Stack classes....
read more