java中Math.random()*10;在math包中不需要导入; 即import java.lang.Math; 即lang下的所有包都不需要导入。 转载于:https://www.cnblogs.com/1020182600HENG/p/5885283.html