Home > Back-end >  The problem of the import
The problem of the import

Time:09-20

A shortcut key idea is added import path

Often
Import the Java. Util. *;

Want to ask if I write such words
As I write
Import the Java. Util. HashMap;

What's the difference?
I only refer to the difference between a package and use *

CodePudding user response:

Do not have what distinction, if you want to introduce a package below a lot of classes, use * more convenient,

CodePudding user response:

Is the one to introduce more, an introduction of a single, generally do not to write import statements, so it's not
  • Related