HELP! * GREY=local LOCAL HTML version of Foils prepared 29 January 1996

Foil 66 Overview of Packages

From CPS616 Lectures on Java CPS616 Basic Information Track for Computational Science -- Winter-Spring Semester 96. by Geoffrey C. Fox * See also color IMAGE

The command
package cps616;
can be used to group classes together. A package statement can be repeated -- e.g all students could use the above package statement in their Java files and the corresponding classes would be grouped in this one package
Note classes are called package.Classname where packages in Java system are all termed java.subpackagename
One uses files in a package by inserting
  • import cps616.* at beginning of file that neededs classes from cps616 package
  • In this case classes in cps616 package can be refered to by just using their Classname
  • Without import command, one must explicitly say cps616.Classname



Northeast Parallel Architectures Center, Syracuse University, npac@npac.syr.edu

If you have any comments about this server, send e-mail to webmaster@npac.syr.edu.

Page produced by wwwfoil on Tue Feb 18 1997