Skip to content

Instantly share code, notes, and snippets.

@sandromancuso
Created November 11, 2012 23:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sandromancuso/4056755 to your computer and use it in GitHub Desktop.
Save sandromancuso/4056755 to your computer and use it in GitHub Desktop.
public class Item {
private String name;
private int sellIn;
private int quality;
public Item(String name, int sellIn, int quality) {
this.setName(name);
this.setSellIn(sellIn);
this.setQuality(quality);
}
// all getters and setters here
@Override
public String toString() {
return "Item [name=" + name +
", sellIn=" + sellIn +
", quality=" + quality + "]";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment