Skip to content

Commit bcde414

Browse files
Added Ones and Twos Complement
1 parent 6544ce0 commit bcde414

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/thealgorithms/bitmanipulation/OnesComplement.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
* the complemented binary string.
99
* @return the complimented binary string
1010
*/
11-
public class OnesComplement {
11+
public final class OnesComplement {
1212
private OnesComplement() {
1313
}
1414

src/main/java/com/thealgorithms/bitmanipulation/TwosComplement.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @author - https://github.com/Monk-AbhinayVerma
77
* @return the two's complement of any binary number
88
*/
9-
public class TwosComplement {
9+
public final class TwosComplement {
1010
private TwosComplement() {
1111
}
1212

0 commit comments

Comments
 (0)