What is Import | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is Import

1st Sep 2017, 1:05 PM
Shubh Agarwal
Shubh Agarwal - avatar
3 Answers
+ 4
When you want to use classes from a Java library like JFrame or Scanner you need to tell Java where they are. Import tells Java I want to add the library at the following reference. E.G. Import Java.util.Scanner; tells Java I intend to use the Scanner class from the Java.util package. Please import this class into my program.
1st Sep 2017, 1:15 PM
josh mizzi
josh mizzi - avatar
+ 1
ThAnK yOu JoSh MiZzi
1st Sep 2017, 1:35 PM
Shubh Agarwal
Shubh Agarwal - avatar
+ 1
That's fine.
1st Sep 2017, 1:36 PM
josh mizzi
josh mizzi - avatar