New course! Every coder should learn Generative AI!
Try a free lesson+ 2
Aren't we suppose to import a package to use the math class?
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.