Packages and Interfaces  «Prev  Next»

Importing Classes from Java Packages - Exercise

Objective: Use the import keyword to import classes from packages.

Exercise Scoring:

This exercise is worth a total of 1 point. You do not have to submit your code to receive credit for this exercise.

Instructions

  1. Write code to import the standard Java API Graphics class, which is part of the java.awt package.
  2. Write code to import all of the classes in the standard java.math package.
After completing the exercise, click the Submit button and the system will award you full credit.