Never try to be a hard-worker. Be a smart-worker.
My Blog
There are only two hard things in computer science: cache invalidation, naming things, and off-by-one errors
javac -cp "C:\Program Files\Java\jre1.5.0_04\bin" <YourClass>.java
Never try to be a hard-worker. Be a smart-worker.
My Blog
No, don't use that command. Don't put any files in the bin folder, which should be reserved for classes from the Java API. Older versions of Java had their bin folder in the classpath, but that is no longer necessary.Originally posted by Rajkumar balakrishnan:
Try compile with this command
javac -cp "C:\Program Files\Java\jre1.5.0_04\bin" <YourClass>.java
No, don't use that command. Don't put any files in the bin folder, which should be reserved for classes from the Java API. Older versions of Java had their bin folder in the classpath, but that is no longer necessary.
javac -cp "Your Class Path" <YourClass>.java
Never try to be a hard-worker. Be a smart-worker.
My Blog
public Arm[] myArms=new Arm[2];
public Leg[] myLegs = new Leg[2]();
Never try to be a hard-worker. Be a smart-worker.
My Blog
Originally posted by Rajkumar balakrishnan:
just change your code like this one.
Because []() were not put at successive places.
Never try to be a hard-worker. Be a smart-worker.
My Blog
Originally posted by Rajkumar balakrishnan:
I agree with Campbell Ritchie.. Just do compile your Arms, Legs and whatever other classes you used here. Then try to compile it . It surely works. A cannot find symbol instead tell you that it can't find such a symbol or class or whatever is missing.
Originally posted by Campbell Ritchie:
Well done. Just one thing: make access to the Arm and Leg objects in the Human class private. You don't want outside code altering them while you're not watching.
Originally posted by saidon conteh:
Ok. i will and post tomorrow. Thanks
Evildoers! Eat my justice! And this tiny ad's justice too!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|