* is not importing all classes | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

* is not importing all classes

today while practicing i have to use random class i have used * to import all classes it was not compiling actually random class was missing when i have defined random instead of * it has been imported why? have you encounter something similar?

10th Jul 2017, 2:29 PM
shobhit
shobhit - avatar
6 Answers
10th Jul 2017, 2:34 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 2
how did you imported * classes?
10th Jul 2017, 2:31 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 2
there shouldn't be space between 'java.' and 'util'
10th Jul 2017, 2:38 PM
Мг. Кнап🌠
Мг. Кнап🌠 - avatar
+ 1
import java. util. *;
10th Jul 2017, 2:32 PM
shobhit
shobhit - avatar
+ 1
it was not working when i have done and moreover i did practiced on pc and not on playground.
10th Jul 2017, 2:36 PM
shobhit
shobhit - avatar
+ 1
yeah i know that and there is no space between them.
10th Jul 2017, 3:50 PM
shobhit
shobhit - avatar