for (TBmwyResolvedevicedata tv : list) { String endTime = tv.getEndTime(); dateList.add(endTime); } 对这个dateList进行排序
时间: 2024-02-24 11:53:45 浏览: 28
你可以使用Collections.sort()方法对dateList进行排序,示例代码如下:
```
Collections.sort(dateList);
```
这将按照默认的升序方式对dateList进行排序。如果你需要降序排序,可以使用Collections.reverseOrder()方法和Collections.sort()方法,示例代码如下:
```
Collections.sort(dateList, Collections.reverseOrder());
```
这将按照降序方式对dateList进行排序。
相关推荐
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![crx](https://img-home.csdnimg.cn/images/20210720083646.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![pdf](https://img-home.csdnimg.cn/images/20210720083512.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)
![rar](https://img-home.csdnimg.cn/images/20210720083606.png)
![zip](https://img-home.csdnimg.cn/images/20210720083736.png)