[BAEL-14274] - Fixed conflicts

This commit is contained in:
amit2103
2019-10-27 18:01:15 +05:30
parent db85c8f275
commit 31763c9733
20514 changed files with 1642278 additions and 0 deletions
@@ -0,0 +1,19 @@
package com.baeldung.pow;
import java.text.DecimalFormat;
public class PowerExample {
public static void main(String[] args) {
int intResult = (int) Math.pow(2, 3);
System.out.println("Math.pow(2, 3) = " + intResult);
double dblResult = Math.pow(4.2, 3);
System.out.println("Math.pow(4.2, 3) = " + Math.pow(4.2, 3));
DecimalFormat df = new DecimalFormat(".00");
System.out.println("Math.pow(4.2, 3) rounded = " + df.format(dblResult));
}
}