KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > OrTest


1 public class OrTest {
2
3     public static void main (String JavaDoc [] args) {
4         OrTest ot = new OrTest();
5         ot.run();
6     }
7
8     private void run() {
9         long l;
10         int t1 = 34;
11         int t2 = 45;
12         
13         l = t1 > t2 ? (long)(t1 << 7 | 5) << 21 | t2:
14                       (long)(t2 << 7 | 5) << 21 | t1;
15     }
16 }
17
Popular Tags