Comment.java
private long id;
private String comment;
public long getId( ) { return id; }
public void setId( long id ) { this.id = id; }
public String getComment( ) { return comment; }
public void setComment( String comment ) {
this.comment = comment; }
public String toString( ) { return comment; }
src/main/java/com/example/wenchen/sqlitedemo/Comment.java |
package com.example.wenchen.sqlitedemo; public class Comment { private long id; private String comment; public long getId( ) { return id; } public void setId( long id ) { this.id = id; } public String getComment( ) { return comment; } public void setComment( String comment ) { this.comment = comment; } // Will be used by the ArrayAdapter in the ListView. @Override public String toString( ) { return comment; } } |