0
[Solved] Issue with Java Math Class
https://code.sololearn.com/c92EjmLJYq97/?ref=app This code works fine here. But when i run it in a java ide it shows "the method pow(int, int) is undefined for the type math' Please help
5 Answers
+ 1
import static java.lang.Math.*;
0
It is working. What is a problem?
0
J.k.b. The problem is that it does not work in any other java ide
0
Try importing Math class
import java.lang.Math
0
Its working now. I tried opening it in a new file and it worked