Converting HashMap to ArrayList

You’re trying to cast the collection of values to a single ExceptionLifeCycleDataBean.

You can very easily get the list though:

List<ExceptionLifeCycleDataBean> beans =
    new ArrayList<ExceptionLifeCycleDataBean>(transitionHash.values());

Or to add to an existing collection, with:

cardholderDataRecords.addAll(transitionHash.values());

No casts necessary.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)