A java application to calculate the compound interest with the principal amount measured with time.
- Math.pow() is used to calculate a number which is raise to the power of any variety of another number.
import static java.lang.Math.pow;
- Scanner class in java is used to obtain primitive data types such as int, double, string, char, etc. It uses the java.util package in order to 'scan' for user input instead of using the 'get' and 'set' methods.
Scanner sc = new Scanner(System.in);