Tag: list

Spring Setter Injection, Dependency In The Form Of Collections

While creating spring bean (pojo class), the bean class can use any of the following 4 types of collections as dependency, along with some primitives and objects like previous sessions.. Set List Map Properties Spring supports these 4 collections…

Spring Dependency Injection With List Collection Property

This is same as <set />, right previous session, but few changes are there, let us see the difference between these two <set /> and <list /> In the previous example [ Dependency In The Form Of Set Collection Property…

Difference between Java Set, List and Map Collections?

Let us see the main differences between Set,List,Map java collections.. Set (Interface) Set is an un-ordered collection which doesn’t allows duplicate (no-duplicate) elements We can iterate the values by calling iterator() method Set s = new HashSet(); Iterator iter…

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…

How to Convert List to Map in Java 8

If you have a scenario where you need to convert List of objects to a Map, prior to java 8 you can do this by writing a simple for loop which is iterative. But in this article I will…

If you enjoyed this blog, please consider sharing it...!!!
Most Recent Posts from Top Categories
Spring Boot Hibernate Spring
Contact | About Us | Privacy Policy | Advertise With Us

© 2010 - 2025 Java4s - Get It Yourself.
The content is copyrighted to Sivateja Kandula and may not be reproduced on other websites.