public class MainClass {
public static void main(String args[]) {
int n = 170;
System.out.println("Lowest one bit: " + Integer.lowestOneBit(n));
System.out.println("Number of leading zeros : " + Integer.numberOfLeadingZeros(n));
System.out.println("Number of trailing zeros : " + Integer.numberOfTrailingZeros(n));
System.out.println("\nBeginning with the value 1, " + "rotate left 16 times.");
}
}
Lowest one bit: 2
Number of leading zeros : 24
Number of trailing zeros : 1
Beginning with the value 1, rotate left 16 times.