How come this program doesnt run?

Reply

Join Date: Dec 2008
Posts: 65
Reputation: StarZ is an unknown quantity at this point 
Solved Threads: 1
StarZ StarZ is offline Offline
Junior Poster in Training
 
0
  #11
Oct 7th, 2009
Oh i only copy that one part.....
Is that why its probably not working?
I need 2 files to make this program work?
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,293
Reputation: majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about majestic0110 has a spectacular aura about 
Solved Threads: 67
majestic0110's Avatar
majestic0110 majestic0110 is offline Offline
Nearly a Posting Virtuoso
 
0
  #12
Oct 7th, 2009
saucer is an object of TYPE Disk. Disk is a class. Remember, in java, Classes are blueprints for objects. So, yes you will need the Disk class. Place the code in the same package as class TestDisk and then if you are still having issues, post back here and we will try and help . Also, I recommend you look at the basics of objects & classes in java:

here
If you have a quality, be proud of it and let it define you. Add it to the world!
If you got your answer, please mark the thread as Solved. It saves time when people are looking to contribute threads or for answers!
Reply With Quote Quick reply to this message  
Join Date: Dec 2008
Posts: 65
Reputation: StarZ is an unknown quantity at this point 
Solved Threads: 1
StarZ StarZ is offline Offline
Junior Poster in Training
 
0
  #13
Oct 7th, 2009
oh... i see. I make another thread, its not about disk but this time I typed the code and the constructor (if thats what its called) the two files are in same pack. but it gives this error: Static Error: No static method in Circle with name 'main' accepts arguments (String[])

this is the link to my other thread: http://www.daniweb.com/forums/post10...ml#post1007535
Reply With Quote Quick reply to this message  
Reply

Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC