diff --git a/exercise3.java b/exercise3.java index de1acc4b7d3ecb09e294356035c38daccd4f8a23..bb46ff72073d55536c9bab3a642bdd025bcf6ff5 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!"); }; }