- 2

Java

How to import

11th Aug 2020, 6:43 PM
Shi Ro
Shi Ro - avatar
4 odpowiedzi
+ 9
The concept of import in java came from the concept of the package in java. As we know packages provide the organized structure to our projects. We can define related classes or interfaces in similar types of packages. But we need to use the import statement in the program to use them. Suppose we are working one a big project and managing your classes or interfaces through the packages. We can keep the utility class or common functionality in separate packages so that whenever we need it, we can you. To use that utility class, you will tell the compiler by use of the import statement. import packageName.*; For more detail: https://javagoal.com/import-in-java/
12th Aug 2020, 9:48 AM
Raina Dhankhar
Raina Dhankhar - avatar
+ 5
https://www.sololearn.com/learn/Java/2161/
11th Aug 2020, 6:46 PM
Ore
Ore - avatar
+ 1
import java.util.*; // at begin of source file
11th Aug 2020, 7:34 PM
zemiak
- 2
Help
11th Aug 2020, 6:44 PM
Shi Ro
Shi Ro - avatar