Contact: aviboots(AT)netvision.net.il
39,923 questions
51,856 answers
573 users
public class MyClass { public static void main(String args[]) { long num = 124; // 111 1100 // 1 ^ 2 = 4 System.out.println("Lowest one bit = " + Long.lowestOneBit(num)); } } /* run: Lowest one bit = 4 */