+ 2
How do we import utilities and make them function in a code
java
9 Respuestas
+ 1
You can import static utility methods like this:
import static java.lang.Math.max;
...and use it like this:
int maximum = max(1,10);
0
import java.util.scanner;
0
xyz k=new xyz ();
k.lol ();
where lol is a function and xyz is the class
0
I've tried the import the
import java.util.scanner:
but it is not bringing the user interphse
0
where you are coading in IDE aur notepad
0
in sololearn...im not yet into computer coding
0
try using jdk java in computer
0
sololearn may not support it
0
ok.....thanks