KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > com > tc > util > Conversions


1 /*
2  * All content copyright (c) 2003-2006 Terracotta, Inc., except as may otherwise be noted in a separate copyright notice. All rights reserved.
3  */

4 package com.tc.util;
5
6 /**
7  * @author steve
8  */

9 public class Conversions {
10   public final static void main(String JavaDoc[] args) throws Exception JavaDoc {
11     int x = 36;
12     System.out.println((x == (x | (x - 2))) ? x : x - 2);
13   }
14 }
Popular Tags