Solved

bitwise negate operator in Java

Posted on 1998-08-06
3
1,330 Views
Last Modified: 2012-06-22
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.

0
Comment
Question by:nekobus
  • 2
3 Comments
 

Accepted Solution

by:
awilkins earned 10 total points
ID: 1231560
The tilde (~).
0
 

Author Comment

by:nekobus
ID: 1231561
thank you!
0
 

Expert Comment

by:awilkins
ID: 1231562
No problem!
0

Featured Post

Better Security Awareness With Threat Intelligence

See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

Join & Write a Comment

Suggested Solutions

Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
This tutorial covers a practical example of lazy loading technique and early loading technique in a Singleton Design Pattern.

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now