Check out example codes for "left shift in java". It will help you in understanding the concepts better.

Code Example 1

int a=a<<n;
//where n is the number of places a is shifted towards left.

Learn ReactJs, React Native from akashmittal.com