Link to home
Start Free TrialLog in
Avatar of chaitu chaitu
chaitu chaituFlag for India

asked on

how can i set both chargelists in the arraylist




if(billingModel.getICStatusChargesList() != null)
billingModel.setChargesList(billingModel.getICStatusChargesList());

if (billingModel.getChargesList() != null)
i want to add all to billingModel.setChargesList(billingModel.getChargesList() )

both getICStatusChargesList() and getChargesList() to be added in billingModel.setChargesList()
Avatar of chaitu chaitu
chaitu chaitu
Flag of India image

ASKER

why i am getting classcastexception if i write this

 billingModel.setChargesList((ArrayList)billingModel.getChargesList().set(0,billingModel.getICStatusChargesList()));
ASKER CERTIFIED SOLUTION
Avatar of aozarov
aozarov

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial