Re: packages

From: John Fereira (jaf30_at_cornell.edu)
Date: 07/31/04


Date: Sat, 31 Jul 2004 15:21:29 GMT


"Bonux" <acerpower61@hotmail.com> wrote in news:ceh5mt$rp7$1@news.intnet.mu:

> Suppose I have classes in c:\javacourse\resources\lab5\
>
> I want to package all my classes in the folder
> c:\javacourse\resources\phase1
>
> How do I do it.
> i have a teller class, Account class , Customer Class,
>
> In the manual it says insert package phase 1; as the first line of the
> source code, But It is not working , can anybody please help me on this
> issue ..

Try putting:

package javacourse.resources.phase1;

as the first non-comment line in Account.java, Customer.java, etc.

For any classes which require these classes use:

import javacourse.resources.phase1.Account;
import javacourse.resources.phase1.Customer;



Relevant Pages

  • Re: packages
    ... > i have a teller class, Account class, Customer Class, ... > In the manual it says insert package phase 1; as the first line of the ...
    (comp.lang.java.help)
  • package access level problem
    ... I have an package called PkMain.Inside that i have 2 sub packages ... level) and customer form swing class. ... object.i have methods of customer class that related to database. ...
    (comp.lang.java.programmer)