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

oracle - The fastest way to check if some records in a database table? -

php - multilevel menu with multilevel array -

jQuery UI: Datepicker month format -