Skip to content

Instantly share code, notes, and snippets.

@Rubatharisan
Created April 24, 2014 09:47
Show Gist options
  • Save Rubatharisan/11248613 to your computer and use it in GitHub Desktop.
Save Rubatharisan/11248613 to your computer and use it in GitHub Desktop.
public class Items {
private int id;
public int getId() {
return id;
}
public void setId(int id) {
this.id = id;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
private String name;
public Items(){
}
@Override
public String toString(){
return "ID: "+this.id+"\n" +
"Name: "+this.name+"\n";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment