Rio coughed up:
> Thanks for all the replies but it really didn't have anything to do
> with badly written code, I didn't put all the classes in the same
[quoted text clipped - 4 lines]
>
> Thanks!
OI. That is not a "real" solution in the long run, unless you truly intend
for the classes to be living "together" in package harmony (kumbaya)...
Learn about using fully qualified class names
gurgle.spit.Splat.method();
or imports
import gurgle.spit.Splat;
...
Splat.method();

Signature
Framsticks. 3D Artificial Life evolution. You can see the creatures
that evolve and how they interact, hunt, swim, etc. (Unaffiliated with
me). http://www.frams.alife.pl/
> Thanks for all the replies but it really didn't have anything to do with
> badly written code,
Nobody suggested that before now.
Aki, Paul and Hal were all asking for an example of what
you were doing. Here are some further points on examples..
<http://www.physci.org/codes/sscce.jsp>
....
> New Package -> and then copy paste of the code saved it!
See you next time* your IDE does something you do not
understand, that does not work as you hope it to. I
suggest you abandon the IDE for the moment and figure how
to do these things from the command line.
<http://www.xdweb.net/~dibblego/java/faq/answers.html#q34>
( * Soon. )

Signature
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.LensEscapes.com/ Images that escape the mundane
Thomas G. Marshall - 27 Oct 2004 15:30 GMT
Andrew Thompson coughed up:
...[rip]...
> See you next time* your IDE does something you do not
> understand, that does not work as you hope it to. I
> suggest you abandon the IDE for the moment and figure how
> to do these things from the command line.
It has always been my position that rank beginners should /always/
thoroughly learn development from the command line *first*. I'd put that in
200 point type if I could, with <BLINK> tags :) . The only technologies I'd
suggest in the very beginning (but no further) would be
vi, or the equivalent. emacs {shudder} maybe. Even ho hum textpad.
make, but not necessary
Beginners should stay *away* from /any/ IDE until they feel like they
understand the command line, the compiler, the classpath, the package to
filesystem mapping, etc.
It's when folks are hazy on the fundamentals that they get utterly stuck in
more complicated (IDE) environments, where nearly all the details are
hidden.
The only possible exception to this rule of mine *might* be BlueJ, which
exists to teach OO fundamentals in java to beginners specifically /away/
from the grit and grime of the details----I don't know how to regard that
product yet, since I've never "taught" in it.
...[rip]...

Signature
"His name was Robert Paulson. His name was Robert Paulson. His name was
Robert Paulson..."
>Thanks for all the replies but it really didn't have anything to do with
>badly written code, I didn't put all the classes in the same package and
>therefore I couldn't call method B from within Class A nor could I
>instantiate an object of Class C from within Class b etc.
>
>New Package -> and then copy paste of the code saved it!
No it didn't fix your problem. I suspect it was a work around.
Classes don't need to be in the same package to instantiate each other
or call methods from other classes... That would really be pointless,
don't you think?
--
now with more cowbell
Oscar kind - 27 Oct 2004 18:17 GMT
> Classes don't need to be in the same package to instantiate each other
> or call methods from other classes... That would really be pointless,
> don't you think?
Indeed: how would you create a List of String's if that were true?

Signature
Oscar Kind http://home.hccnet.nl/okind/
Software Developer for contact information, see website
PGP Key fingerprint: 91F3 6C72 F465 5E98 C246 61D9 2C32 8E24 097B B4E2