Check out example codes for "how do you set an integer to a number in java". It will help you in understanding the concepts better.

Code Example 1

int num = 9;

Code Example 2

int number = 10;

Learn ReactJs, React Native from akashmittal.com