Search code examples
javaprocessingoperator-keywordrelationaloperation

The meaning of operators >> and << in processing


In processing what is the meaning of this operator?

<< and >>


Solution

  • Have look at this link: http://docs.oracle.com/javase/tutorial/java/nutsandbolts/op3.html. These are bit shift operators.

    The signed left shift operator "<<" shifts a bit pattern to the left, and the signed right shift operator ">>" shifts a bit pattern to the right. The bit pattern is given by the left-hand operand, and the number of positions to shift by the right-hand operand.