Foggy day

Android - Arraylist sort, collection sort 본문

Android

Android - Arraylist sort, collection sort

jinhan38 2021. 2. 23. 14:19

 

 

 

  Collections.sort(dayArrayList, new Comparator<ChartDayData>() {
            @Override
            public int compare(ChartDayData chartDayData, ChartDayData t1) {
                return chartDayData.getDay().compareTo(t1.getDay());
            }
        });