Add IsEven Algorithm (#4301)

Co-authored-by: BamaCharanChhandogi <b.c.chhandogi@gmailcom>
This commit is contained in:
Bama Charan Chhandogi
2023-08-13 01:36:39 +05:30
committed by GitHub
parent 251157059c
commit 1ef700e850
2 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,12 @@
package com.thealgorithms.bitmanipulation;
/**
* Converts any Octal Number to a Binary Number
* @author Bama Charan Chhandogi (https://github.com/BamaCharanChhandogi)
*/
public class IsEven {
public static boolean isEven(int number) {
return (number & 1) == 0;
}
}