dcsimg
TODAY'S HEADLINES  |   ARTICLE ARCHIVE  |   FORUMS  |   TIP BANK
Browse DevX
Sign up for e-mail newsletters from DevX


Tip of the Day
Language: Java
Expertise: Intermediate
Mar 16, 2020

Create a 32-bit mask as 1000

For creating a 32-bit mask as 1000, we need to left-shift the value of 1. For example, if we shift it three positions we obtain 1000:

int x = 1 
Octavia Anghel
 
Thanks for your registration, follow us on our social networks to keep up-to-date