Applying IOC/DI to Method Design

Eventhough IOC is a generic design pattern, with Spring framework IOC/DI pattern became more popular.We can find lot of definitions for IOC/DI over internet, but the underlying concept is same.“Instead of component is responsible for getting the required dependencies to

Continue reading

How to get List of property values from List of objects?

package com.javautils.core;import java.util.ArrayList;import java.util.Collection;import java.util.HashSet;import com.javautils.beans.Address;import com.javautils.beans.User;public class CollectionUtil{    public static void main(String[] args)    {        User user1 = new User(1,”AAAA”, “Hyd”);        User user2 = new User(2,”BBBB”, “Bnglr”);        User user3 = new User(3,”CCCC”, “Chennai”);        User user4 =

Continue reading