What is the import for List in Java?

An import statement tells Java which class you mean when you use a short name (like List ) . It tells Java where to find the definition of that class. You can import just the classes you need from a package as shown below. Just provide an import statement for each class that you want to use.

Sizin İçin Seçtik  What is list type in Java?

Leave a Reply

Your email address will not be published. Required fields are marked *