operators - What does << mean in java? -


I do not know that & lt; & Lt; This means in Java, because I can not find it on Google, I'm totally lost!

The code in question is:

  public int getRGB () {return ((red & lt; 16) 

) | Blue);

Itemprop = "Text">

left shift of bits

If red == 4 (which is in binary: 00000100) then red & lt; & Lt; 16 will include sixteen-bit bits on your right, yield: 00000100000000000000000000 which is 262144 in decimal


Comments

Popular posts from this blog

asp.net - Change the driver in the connection string to a data source in VB.Net -

Getting started consuming web services in a Ruby on Rails 3 application -

objective c - iPhone and it's wireless area -