Skip to content

Commit 36b981d

Browse files
committed
refactor: moved & renamed tilde
1 parent 92b90bf commit 36b981d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/javaSpecific/guessTheOutput/TildeMathematics.java renamed to src/binary/tilde/TildeOperator.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
package javaSpecific.guessTheOutput;
1+
package binary.tilde;
22

33
// -x = ~x + 1;
44
// -~x = x + 1 (by replacing x by ~x)
5-
public class TildeMathematics {
5+
public class TildeOperator {
66
public static void main(String[] args) {
77
System.out.println(~-9); // 8
88
System.out.println(~-100); // 99

0 commit comments

Comments
 (0)