From 88c2ca8dcc9e5351d34fa9110434ab7fd01e88af Mon Sep 17 00:00:00 2001 From: Stefan Suhren Date: Thu, 13 Nov 2014 22:56:15 +0100 Subject: Assignment No.7 now with english comments --- src/de/fhswf/in/inf/java1/aufgabe7/Spiel.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/de/fhswf/in/inf/java1/aufgabe7/Spiel.java') diff --git a/src/de/fhswf/in/inf/java1/aufgabe7/Spiel.java b/src/de/fhswf/in/inf/java1/aufgabe7/Spiel.java index 1954a8c..f33e031 100644 --- a/src/de/fhswf/in/inf/java1/aufgabe7/Spiel.java +++ b/src/de/fhswf/in/inf/java1/aufgabe7/Spiel.java @@ -39,7 +39,7 @@ public class Spiel { if (ersterTipp < 0 || ersterTipp > MAXHUET) { - throw new IllegalArgumentException("Tip liegt nicht im Bereich."); + throw new IllegalArgumentException("Tip outside of boundaries."); } int erg = -1; if (ersterTipp != nussPlatz) @@ -70,7 +70,7 @@ public class Spiel * The player who plays. * @return Boolean, if the player choose correct. */ - public boolean spielDurchlauf(Spieler spieler) + public final boolean spielDurchlauf(Spieler spieler) { if (spieler == null) { -- cgit v1.2.3-70-g09d2