I wants result like this from the array
I'm doing like this and get value in data but how to percentages base total and store in array that i cant do so how to do that.
- Arraypercentages value {"18","12"}; // percentage
- ArrayIGST value {"00.00","00.00"} // some of values where percentages index is match
- ArrayCGST value {"2243.7","1170"}// some of values where percentages index is match
- ArraySGST value {"2243.7","1170"}// some of values where percentages index is match
  ArrayList<String> percentageArray = new ArrayList<>();
                        for (int c = 0; c < temp_arraylist.get(j).getListPercantages().size(); c++) {
                            String per = temp_arraylist.get(j).getListPercantages().get(c);// percentages
                            String lcgst = temp_arraylist.get(j).getListcgst().get(c);//cgst
                            String lsgst = temp_arraylist.get(j).getListsgst().get(c);//sgst
                            String ligst = temp_arraylist.get(j).getListigst().get(c);//igst
                            if (percentageArray.contains(per)) {
                            } else {
                                percentageArray.add(per);
                            }
                            for (int e = 0; e < temp_arraylist.get(j).getListPercantages().size(); e++) {
//check where index of percentage is match with current then sum of SGST array index sum and store as same index of percentage array index where it match.
                            }
}
