From b83adfd75d587b87d87b48d86f6bde969794d4e7 Mon Sep 17 00:00:00 2001 From: Frangu Madalin <54155911+xFrann@users.noreply.github.com> Date: Thu, 30 Jan 2025 20:13:15 +0200 Subject: [PATCH] Update is-power-of-two.md Fixed code error to also match comments. --- snippets/java/bit-manipulation/is-power-of-two.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/snippets/java/bit-manipulation/is-power-of-two.md b/snippets/java/bit-manipulation/is-power-of-two.md index 667cc201..42055f43 100644 --- a/snippets/java/bit-manipulation/is-power-of-two.md +++ b/snippets/java/bit-manipulation/is-power-of-two.md @@ -12,5 +12,5 @@ public static boolean isPowerOfTwo(int number) { // Usage: int number = 16; -System.out.println(isPowerOfTwo(5)); // true (2^4) -``` \ No newline at end of file +System.out.println(isPowerOfTwo(number)); // true (2^4) +``` pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy