F
Friday
I am a beginner of Java.
I don't understand what the the "import" statement do for the
program clearly.
For example, I just write a program like this:
import java.util.HashMap
class MyClass
{ ... }
...
In my opinion, the computer first copy all the code of the
"java.util.HashMap" class to
my program,then go down to the next .
Isn't it?
Thanks for your attention.
I don't understand what the the "import" statement do for the
program clearly.
For example, I just write a program like this:
import java.util.HashMap
class MyClass
{ ... }
...
In my opinion, the computer first copy all the code of the
"java.util.HashMap" class to
my program,then go down to the next .
Isn't it?
Thanks for your attention.