It's not a secret anymore!
The moose likes Cattle Drive and the fly likes Can I use a package? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Make it so: Java DB Connections & Transactions this week in the JDBC forum!
JavaRanch » Java Forums » This Site » Cattle Drive
Bookmark "Can I use a package?" Watch "Can I use a package?" New topic

Can I use a package?

Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Hello all, I'm asking all these questions up front so as to not go through many "masterpiece restorations" later. Also the questions/answers will be helpful additions to the/a FAQ, and so future members can get clued in quicker.
So, can I use a package for all of my assignments?
Either I can use com.bfgaunt.cattledrive or something like com.javaranch.jr<memberid> as prefixes. I guess the assignment identifier (without the minus) should also be appended.
Part of the deal, would be the necessity to provide a README to specify correct additions to the CLASSPATH so that a user can use the stuff.
Packages are another thing we are supposed to get a handle on, so starting out on day one with them would be ideal.
Or is it getting too complex?

Ask a Meaningful Question and HowToAskQuestionsOnJavaRanch
Getting someone to think and try something out is much more useful than just telling them the answer.
Marilyn de Queiroz

Joined: Jul 22, 2000
Posts: 9058
You can use packages, just remove them before you send in your assignments.

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Barry Gaunt
Ranch Hand

Joined: Aug 03, 2002
Posts: 7729
Great answer, Marilyn
I don't have any more questions, so I can't procrastinate any longer. I'll start tomorrow...
I agree. Here's the link:
subject: Can I use a package?
It's not a secret anymore!