Check out example codes for "how to check for a decimal point in java". It will help you in understanding the concepts better.

Code Example 1

d % 1 == 0
//THIS CHECKS IF VARIABLE D IS A WHOLE NUMBER

Learn ReactJs, React Native from akashmittal.com