+ 2

How do we import utilities and make them function in a code

java

22nd Jun 2017, 7:09 AM
joseph
joseph - avatar
9 Respostas
+ 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);
22nd Jun 2017, 7:46 AM
Kürti Szabolcs
Kürti Szabolcs - avatar
0
import java.util.scanner;
22nd Jun 2017, 6:41 PM
Vishal Singh
Vishal Singh - avatar
0
xyz k=new xyz (); k.lol (); where lol is a function and xyz is the class
22nd Jun 2017, 6:42 PM
Vishal Singh
Vishal Singh - avatar
0
I've tried the import the import java.util.scanner: but it is not bringing the user interphse
23rd Jun 2017, 4:55 AM
joseph
joseph - avatar
0
where you are coading in IDE aur notepad
23rd Jun 2017, 4:56 AM
Vishal Singh
Vishal Singh - avatar
0
in sololearn...im not yet into computer coding
24th Jun 2017, 6:40 AM
joseph
joseph - avatar
0
try using jdk java in computer
24th Jun 2017, 11:53 AM
Vishal Singh
Vishal Singh - avatar
0
sololearn may not support it
24th Jun 2017, 11:53 AM
Vishal Singh
Vishal Singh - avatar
0
ok.....thanks
24th Jun 2017, 10:26 PM
joseph
joseph - avatar