+ 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?
6 Respuestas
+ 3
it works fine
https://code.sololearn.com/c33EK8tVQS1i/?ref=app
+ 2
how did you imported * classes?
+ 2
there shouldn't be space between 'java.' and 'util'
+ 1
import java. util. *;
+ 1
it was not working when i have done and moreover i did practiced on pc and not on playground.
+ 1
yeah i know that and there is no space between them.