Long.rotateLeft(long i, int distance) has the following syntax.
public static long rotateLeft(long i, int distance)
In the following code shows how to use Long.rotateLeft(long i, int distance) method.
public class Main { //w ww . ja va 2s . c om public static void main(String[] args) { long n = 64; n = Long.rotateLeft(n, 4); System.out.println(n); } }
The code above generates the following result.