Solved

bitwise negate operator in Java

Posted on 1998-08-06
3
1,336 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

Gigs: Get Your Project Delivered by an Expert

Select from freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
javap bin 2 34
web application structure 18 77
servlet example 17 30
pagenation logic how it is working in my code 1 29
An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
Viewers learn about the “for” loop and how it works in Java. By comparing it to the while loop learned before, viewers can make the transition easily. You will learn about the formatting of the for loop as we write a program that prints even numbers…
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:

776 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