Computer Applications

Suppose you want to use the class MyClass of the package MyPackage.UtilityLibrary in a program you are writing. What do you need to do to make the following?

i. class MyClass available to your program

ii. all the classes of the package available to your program

Input in Java

15 Likes

Answer

i.

import MyPackage.UtilityLibrary.MyClass;

ii.

import MyPackage.UtilityLibrary.*;

Answered By

6 Likes


Related Questions