Introduction
Java rotateLeft()
method is a built-in method in the Integer
class of the java.lang
package. In this lab, you will learn how to use the rotateLeft()
method, which is used to rotate the bits of a binary equivalent of the integer number, i.e., all bits of the binary number are shifted left or right to a definite number of places.