Last active
November 30, 2016 09:42
-
-
Save ssaurel/06866bf44ad25e9fc19a9aca7d9eeb20 to your computer and use it in GitHub Desktop.
Java Bean for a SQLite tutorial
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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