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