I just want to move the transitionHash map values into the cardholderDataRecords arraylist.
HashMap<String,ExceptionLifeCycleDataBean> transitionHash = new HashMap<String,ExceptionLifeCycleDataBean>();
ArrayList<ExceptionLifeCycleDataBean> cardholderDataRecords = new ArrayList<ExceptionLifeCycleDataBean>();
i am doing as
cardholderDataRecords.add((ExceptionLifeCycleDataBean) transitionHash.values());
It's throwing
java.lang.ClassCastException: java.util.HashMap$Values cannot be cast to com.reportss.bean.ExceptionLifeCycleDataBean