1)Sample.java
Before Java 7:
int datatype allows only numbers.
In Java 7:
int allows numbers and underscore.
So, it is easy to read the numbers. Especially when declare amount, in integer it’s easy to read it and avoid confusion.
import...