Skip to content

Instantly share code, notes, and snippets.

@ssaurel
Last active November 30, 2016 09:42
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 ssaurel/06866bf44ad25e9fc19a9aca7d9eeb20 to your computer and use it in GitHub Desktop.
Save ssaurel/06866bf44ad25e9fc19a9aca7d9eeb20 to your computer and use it in GitHub Desktop.
Java Bean for a SQLite tutorial
public class Player {
private int id;
private String name;
private String position;
private int height;
public Player() {
}
public Player(int id, String name, String position, int height) {
this.id = id;
this.name = name;
this.position = position;
this.height = height;
}
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;
}
public String getPosition() {
return position;
}
public void setPosition(String position) {
this.position = position;
}
public int getHeight() {
return height;
}
public void setHeight(int height) {
this.height = height;
}
@Override
public String toString() {
return name + " - " + position + " - " + height + " cm";
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment