From 6ebb15932767fbb18447adfdfc841b84be895378 Mon Sep 17 00:00:00 2001 From: github-actions <${GITHUB_ACTOR}@users.noreply.github.com> Date: Mon, 16 Nov 2020 01:40:56 +0000 Subject: [PATCH] Formatted with Google Java Formatter --- Maths/BinaryPow.java | 16 +++++++++------- 1 file changed, 9 insertions(+), 7 deletions(-) diff --git a/Maths/BinaryPow.java b/Maths/BinaryPow.java index d3224c8..b9d5b68 100644 --- a/Maths/BinaryPow.java +++ b/Maths/BinaryPow.java @@ -21,26 +21,28 @@ public class BinaryPow { return res; } - /** + /** * Function for testing binary exponentiation - * @param a the base + * + * @param a the base * @param p the exponent */ - public static void test(int a, int p) { + public static void test(int a, int p) { int res = binPow(a, p); assert res == (int) Math.pow(a, p) : "Incorrect Implementation"; System.out.println(a + "^" + p + ": " + res); } - /** Main Function to call tests - * + /** + * Main Function to call tests + * * @param args System Line Arguments */ public static void main(String[] args) { // prints 2^15: 32768 - test(2, 15); + test(2, 15); // prints 3^9: 19683 - test(3,9); + test(3, 9); } } -- GitLab