package Q8; public class Point { public static final int PLAYER1 = 0; public static final int PLAYER2 = 1; private int player; private int score; private String stroke; public Point(int player, String stroke, int score) { this.player = player; this.stroke = stroke; this.score = score; } public int getPlayer() { return this.player; } public int getScore() { return this.score; } public String getStroke() { switch (this.stroke) { case "a": return "slice"; case "b": return "drive"; case "c": return "smash"; case "d": return "drop"; case "e": return "net-shot"; default: return "unknown"; } } }