What the hell is this bitwise operator??
PLEASE HELP ME ON THIS:
class Bitwise {
public static void main (
String[] args)
{
int x=5;
System.out.println(� x is �+x);
x = ~ x;
System.out.println(�~x is �+x);
}
}
The output is :
x is 5
~x is -6
HOW IT COMES LIKE THAT???
Edited by Corey McGlone: Removed excessive exclamation points from Subject Line.
[ January 26, 2005: Message edited by: Corey McGlone ]