public class Shift
{
public static void main(String [] x)
{
int c=5;
System.out.println("After Left Shifting 5 by 2 points "+(c<<2 ));
System.out.println("After Right Shifting 5 by 2 points "+(c>>2 ));
}
}
Thursday, March 26, 2009
Left shift and right shift usig java
Labels:sreejithrs,nojamp,karakulam,sreejith rs
java sample code,
left Shift.right Shift,
Shift
Subscribe to:
Post Comments (Atom)
0 comments:
Post a Comment