From ebe798d8b7b51a8d8f5e587c7f0b885c7430d5c5 Mon Sep 17 00:00:00 2001 From: Alena Bandarovich Date: Fri, 9 Feb 2024 22:15:25 +0100 Subject: [PATCH] Add square calculation method --- src/main/java/Calculations.java | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 src/main/java/Calculations.java diff --git a/src/main/java/Calculations.java b/src/main/java/Calculations.java new file mode 100644 index 0000000..74654ff --- /dev/null +++ b/src/main/java/Calculations.java @@ -0,0 +1,5 @@ +public class Calculations { + public int calculateSquare(int num) { + return (num * num); + } +}