List<MessageBoardBean> messages = new ArrayList<MessageBoardBean>();
MessageBoardBean是我自己建的类,有三个变量
public class MessageBoardBean {
private String title;
private String content;
private String author;
public MessageBoardBean(String title,String author,String content) {
this.author = author;
this.content = content;
this.title = title;
}
现在list里每条都是3个数据一组
我现在想删除其中一组(title,author,content三个一起)
index = messages.indexOf(????);
messages.remove(index);
???该怎么填
------解决思路----------------------