1、24:a2:e1:29:60:48 Tue Jun 17 23:47:02 2014 video XNTcwMzE5MjQ4 clicked 24:a2:e1:29:60:48 Tue Jun 17 23:48:23 2014 video XNzE3NTk1NDI0 clicked 24:a2:e1:29:60:48 Tue Jun 17 23:50:02 2014 video end Video details: Total duration: 15.970000 mins Viewing time: 93.890000 secs Device operation: ios
2、24:a2:e1:29:60:48 Tue Jun 24 08:35:34 2014 video XNTE1MDg0MTY4 clicked 24:a2:e1:29:60:48 Tue Jun 24 08:38:41 2014 video XNzI3NjUwODA4 clicked 24:a2:e1:29:60:48 Tue Jun 24 08:38:44 2014 video end Video details: Total duration: 4.710000 mins Viewing time: 2.260000 secs Device operation: ios
3、24:a2:e1:29:60:48 Tue Jun 17 23:13:59 2014 video XNzIyNDcxMjU2 clicked 24:a2:e1:29:60:48 Tue Jun 17 23:14:04 2014 video XNzIyNDcxMjU2 clicked 24:a2:e1:29:60:48 Tue Jun 17 23:14:08 2014 video XNjg5MDkwMjA0 clicked 24:a2:e1:29:60:48 Tue Jun 17 23:14:14 2014 video end Video details: Total duration: 4.590000 mins Viewing time: 5.020000 secs Device operation: ios
1和2中都有重复的clicked,现在需要保留每一行clicked之后的内容,而之前的内容不需要,使用java来实现,求各位大神指点下
应该不是去重吧。
谢谢。。。
通过字符串截取可以很好地解决问题,添加如下的代码就可以了
表述的的没看明白要保留那些,最好举个例子
你可以用正则表达式试一下
你可以用StringBuilder,读一条构建一个,然后remove哪些lastIndexof(clicked)之前的字符。