This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
its the bitwise complement operator. Check out the JLS: �15.15.5 (basically you flip all the bits, if its a 0 make it a 1 and vice-versa. NOTE this is different than the '-' operator where you take the two's complement -- flip the bits and add 1)
Tim, for many of us, it looks like the "~" operator is what you were asking about in the first place. That's because our browsers have interpreted what you wrote as HTML. You typed "&sim" and it came out "~". That's because "∼" is an HTML character entity for the ~ symbol. It's supposed to have that final ; to make it a proper char entity, but due to the sorry lack of standardization in the HTML world, poorly-written stuff like "&sim" is often tolerated. Some browsers will translate it, some won't. You must have seen a sample test written by someone who didn't know how to write proper HTML, and your browser presented the "raw" &sim rather than the parsed ~. Just pretend they wrote ~ in the first place; that's what they meant. This actually has nothing to do with Java; it's an HTML issue. [ August 11, 2003: Message edited by: Jim Yingst ]
"I'm not back." - Bill Harding, Twister
Joined: Jul 07, 2003
OK, thanks. Does this mean I won't have to worry about knowing what &sim, > and & are on the certification exam, and that the actual symbol will be displayed? Thanks, Tim