Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Suppose I am in a folder that has a subfolder called widgets that contains sever

ID: 3938733 • Letter: S

Question

Suppose I am in a folder that has a subfolder called widgets that contains several .class files. Write the command-line instruction that will create a jar file called widgets.jar that contains the .class files in the widgets subfolder.

Suppose I have a class called Snuffleupagus that is contained in a package called sesame.street. Suppose I want to use that class in a new source file that I’m using. Write the line I would have to include in that new source file in order to be able to use the Snuffleupagus class.

Explanation / Answer

import sesame.street.Snuffleupagus;

You have to add this line in another package currently using

import package_name.class_name;

You have to give package name and then class name don't forgot to put period in between package name and class name

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote