我通過(guò)以下代碼得到了一個(gè)列表:ArrayList<String> single = new ArrayList<String>()- [Document{{packetsLost=0,id=ssrc_1848956494_recv, timestamp=2019-07-11T07:18:42.923Z}}, Document{{packetsLost=10, timestamp=2019-07-11T07:20:43.413Z}}]- [Document{{packetsLost=0, id=ssrc_1848956494_send, timestamp=2019-07-11T07:18:42.923Z}}, - Document{{packetsLost=10, timestamp=2019-07-11T07:20:43.413Z}}]- [Document{{packetsLost=0,id=ssrc_929521404_recv, timestamp=2019-07-11T07:18:42.923Z}}, Document{{packetsLost=10, timestamp=2019-07-11T07:20:43.413Z}}]- [Document{{packetsLost=0,id=ssrc_929521404_send, timestamp=2019-07-11T07:18:42.923Z}}, Document{{packetsLost=10, timestamp=2019-07-11T07:20:43.413Z}}]我是 java 的新手,我如何從檢索到的列表創(chuàng)建子列表,知道數(shù)據(jù)包在列表中丟失值,在其他列表中丟失帶有符號(hào)(id)的時(shí)間戳,如: 1- id=ssrc_1848956494_recv [0 , 0] [2019-07-11T07:18:42.923Z, 2019-07-11T07:20:43.413Z] 2- id=ssrc_1848956494_send [0 , 0] [2019-07-11T07:18:42.923Z, 2019-07-11T07:20:43.413Z] 3- id=ssrc_929521404_recv [0 , 0] [2019-07-11T07:18:42.923Z, 2019-07-11T07:20:43.413Z] 4- id=ssrc_929521404_send [0 , 0] [2019-07-11T07:18:42.923Z, 2019-07-11T07:20:43.413Z]
如何將java中的列表解壓縮為子列表
12345678_0001
2023-03-31 15:00:52