Help- questions on the whole package thing

Cheers-

I'm a semi-beginner java person, and a friend and I have been having an argument about packages. I say that you can't have more then one package deffinition in a directory.

I.E. package com.blah.dumbpackage has to be in the directory hiarchy com/blah/dumbpackage and a package com.blah.anotherpackage,

can't be in the same directory. My friend seems to think that this is possible. Which of us is right?

thanks.

-Hixon

[475 byte] By [Honier] at [2007-9-26 2:39:14]
# 1
You are correct.
bschauwe at 2007-6-29 10:11:28 > top of Java-index,Archived Forums,Java Programming...
# 2
I think you are right.As far as i know, Packages correspond to directories.When you compile, if you had a package, com.dork.myapp, your class file is saved in the directory com/dork/myapp/x.classWhat does he owe you?
bokuhog at 2007-6-29 10:11:28 > top of Java-index,Archived Forums,Java Programming...
# 3
a beer
Honier at 2007-6-29 10:11:28 > top of Java-index,Archived Forums,Java Programming...
# 4
thank you all.
Honier at 2007-6-29 10:11:28 > top of Java-index,Archived Forums,Java Programming...