bitwise negate operator in Java

Hi there, can someone tell me what's the operator for bitwise negation?

Like if I have a bit pattern 01, I want to apply the bitwise negation and
get 10.

Is there an operator for that? Thanks in advanced.

nekobusAsked:
Who is Participating?
 
awilkinsCommented:
The tilde (~).
0
 
nekobusAuthor Commented:
thank you!
0
 
awilkinsCommented:
No problem!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.