From d964acffbadffb0661b6f1fb8756f6e37d600fce Mon Sep 17 00:00:00 2001 From: Juuso Rytilahti <juuso.b.rytilahti@utu.fi> Date: Thu, 16 May 2024 12:18:26 +0000 Subject: [PATCH] Update exercise3.java --- exercise3.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/exercise3.java b/exercise3.java index de1acc4..bb46ff7 100644 --- a/exercise3.java +++ b/exercise3.java @@ -66,7 +66,7 @@ public class Exercise3 { case "triangle" -> (x1 - x2) * (y1 - y2) / 2; case "quadrilateral" -> (x1 - x2) * (y1 - y2); case "circle" -> Math.PI * ((x1 - x2) * (x1 - x2) + (y1 - y2) * (y1 - y2)); - default -> throw new Exception("Unfalimiar pattern!"); + default -> throw new Exception("Unfamiliar pattern!"); }; } -- GitLab