We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 29a864b commit 0236fe9Copy full SHA for 0236fe9
src/main/java/com/thealgorithms/bitmanipulation/GetBit.java
@@ -0,0 +1,5 @@
1
+public class GetBit {
2
+ public static int getBit(int num, int get) {
3
+ return (num>>get) & 1;
4
+ }
5
+}
0 commit comments