+ 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