how can i set both chargelists in the arraylist

Posted on 2005-04-21
Last Modified: 2010-03-31

if(billingModel.getICStatusChargesList() != null)

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

both getICStatusChargesList() and getChargesList() to be added in billingModel.setChargesList()
Question by:chaitu chaitu
    LVL 20

    Author Comment

    by:chaitu chaitu
    why i am getting classcastexception if i write this

    LVL 15

    Accepted Solution

    ArrayList arrayList = new ArrayList(billingModel.getICStatusChargesList());

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Suggested Solutions

    Java had always been an easily readable and understandable language.  Some relatively recent changes in the language seem to be changing this pretty fast, and anyone that had not seen any Java code for the last 5 years will possibly have issues unde…
    Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
    Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:
    The viewer will learn how to implement Singleton Design Pattern in Java.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    20 Experts available now in Live!

    Get 1:1 Help Now