How to store all ArrayList> values into ArrayList?

前端 未结 2 1497
借酒劲吻你
借酒劲吻你 2021-01-29 14:51

I am having issue to store all values of ArrayList> into ArrayList. Here stylistIDArray and

2条回答
  •  傲寒
    傲寒 (楼主)
    2021-01-29 15:49

    You doing wrong operation with arraylist, in loop you are getting data from stylistIDArray and assign to aryalist, not inserting in list, have look this

    stylistIDArray=differentGenderServicesAdapter.getSelectedStylistIdArray();
                            durationArray=differentGenderServicesAdapter.getSelectedDurArray();
    
                            ArrayListstylistId=new ArrayList<>();
                            ArrayListduration=new ArrayList<>();
    
                           for(int i=0; i

    Hope it will help you!

提交回复
热议问题