From 9d53d8857eaa1c9405894a88ca75bc4657e42f35 Mon Sep 17 00:00:00 2001 From: msglm Date: Sat, 14 Jan 2023 05:31:48 -0600 Subject: Inital Commit --- Java/Method.java | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 Java/Method.java (limited to 'Java/Method.java') diff --git a/Java/Method.java b/Java/Method.java new file mode 100644 index 0000000..810dee0 --- /dev/null +++ b/Java/Method.java @@ -0,0 +1,21 @@ +import java.io.BufferedReader; +import java.io.InputStreamReader; +import java.lang.Math; +class Method { + static void squareIT(double tobesquared){ + System.out.println( Math.pow(tobesquared,2) ); + } + public static void main(String[] args) throws java.io.IOException{ + double squarable; + BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); + squarable = Double.parseDouble(input.readLine()); + squareIT(squarable); + + + + + + } +} + +//By msglm; Licensed under the AGPL v3 -- cgit v1.2.3