Tag: arraylist
Difference between Arraylist and Vector in Java
Hi friends, let us see the main differences between ArrayList and Vector collections, this is very important and common question in interviews for all IT people, hope you might face this question in your previous interviews 😉 Any how…
How To Sort An ArrayList In Java
This is one of the famous interview questions for freshers and even for the experienced developers 🙂 let us see how to sort the ArrayList in java. We have a class Collections in java.util package, which will do this…
How to Store Multiple Data types In An ArrayList
So, how to store objects of multiple data types in the ArrayList, in fact storing is pretty simple, every one will get some idea but how to retrieve the values ? for example if we have 100+ values in…
How to Convert String Array to List in Java
Its very often scenario to convert String Array to list in real time projects . In java we have inbuilt function to convert String array to List. Syntax: Arrays.asList(“Input String array“); Java String Array to List Example import java.util.Arrays; import java.util.List; public…