Aren't we suppose to import a package to use the math class? | Sololearn: Learn to code for FREE!
Nouvelle formation ! Tous les codeurs devraient apprendre l'IA générative !
Essayez une leçon gratuite
+ 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 Réponse
+ 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