From 6093363c9503280596926eb9b652121061ba5cde Mon Sep 17 00:00:00 2001 From: fdai7446 <––fdai7446@fhfddvz1.rz.hs-fulda.de> Date: Fri, 10 Feb 2023 16:47:05 +0100 Subject: [PATCH] Pi funktion refactoring --- Taschenrechner.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Taschenrechner.java b/Taschenrechner.java index 8d1d703..34bd0db 100644 --- a/Taschenrechner.java +++ b/Taschenrechner.java @@ -55,7 +55,7 @@ public class Taschenrechner { return temp; } - static double pie() { + static double pi() { return Math.PI; } @@ -142,7 +142,7 @@ public class Taschenrechner { case 9:{ System.out.println("Pi\n"); - System.out.println("Pi:" + pie()); + System.out.println("Pi:" + pi()); break; }