From 1e8a16c14d86933d305b5db172a7d3716c2db61c Mon Sep 17 00:00:00 2001 From: Friederike von Gruben Date: Mon, 6 Feb 2023 14:05:35 +0100 Subject: [PATCH] Created BlackJack constructor Set playername --- src/main/java/org/bitbiome/classes/BlackJack.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/main/java/org/bitbiome/classes/BlackJack.java b/src/main/java/org/bitbiome/classes/BlackJack.java index dbc3386..c0bc92b 100644 --- a/src/main/java/org/bitbiome/classes/BlackJack.java +++ b/src/main/java/org/bitbiome/classes/BlackJack.java @@ -32,4 +32,10 @@ public class BlackJack { } } + private String playerName; + + public BlackJack(String playerName) { + this.playerName = playerName; + } + }