Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Karte {
- private char symbol;
- private int werte;
- public Karte(char symbol, int werte) {
- this.symbol=symbol;
- this.werte=werte;
- }
- public char getSymbol() {
- return symbol;
- }
- public void setSymbol(char symbol) {
- this.symbol = symbol;
- }
- public int getWerte() {
- return werte;
- }
- public void setWerte(int werte) {
- this.werte = werte;
- }
- @Override
- public String toString() {
- return symbol + " - " + werte;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement