|The ~ operator performs a bitwise complement operation on its
operand, which has the effect of reversing each bit. Bitwise complement
operators are predefined for
User-defined types can overload the ~ operator. For more information, see operator. Operations on integral types are generally allowed on enumeration.
|The time of writing this manuscript, Iteraror in Java 5.0 was introduced, that was an equivalent to foreach loop of C#|