+ 2

Aren't we suppose to import a package to use the math class?

1st Apr 2016, 6:56 AM
johnson shijin
johnson shijin - avatar
1 Answer
+ 4
Math is in java.lang. You don't need to import types in java.lang at all. There's an implicit import java.lang.*; already when you run a Java program.
18th May 2016, 11:40 AM
James Flanders