Long.lowestOneBit(long i) has the following syntax.
public static long lowestOneBit(long i)
In the following code shows how to use Long.lowestOneBit(long i) method.
// w w w . ja v a2s .c om public class Main { public static void main(String[] args) { long l = 100; System.out.println("Number = " + l); System.out.println("Binary = " + Long.toBinaryString(l)); System.out.println("Lowest one bit = " + Long.lowestOneBit(l)); } }
The code above generates the following result.