+ 3
How to use the import statement I did not understand
4 odpowiedzi
+ 2
It is used to import Java packages. For example:
Import java.util.Scanner;
Imports the Scanner class.
+ 4
Thank you
+ 3
Aviral Anand import is a Java keyword which declares a Java class to use in the code you created in a certain way. Once the Java class is declared, then the class name can be used in the code without specifying the package the class belongs to. If you use the asterisk it declares all classes belong to that particular package.