944,089 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 1065
  • Java RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Oct 7th, 2009
0
Re: How come this program doesnt run?
Oh i only copy that one part.....
Is that why its probably not working?
I need 2 files to make this program work?
Reputation Points: 11
Solved Threads: 1
Junior Poster in Training
StarZ is offline Offline
85 posts
since Dec 2008
Oct 7th, 2009
0
Re: How come this program doesnt run?
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
Reputation Points: 256
Solved Threads: 72
Nearly a Posting Virtuoso
majestic0110 is offline Offline
1,306 posts
since Oct 2007
Oct 7th, 2009
0
Re: How come this program doesnt run?
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
Reputation Points: 11
Solved Threads: 1
Junior Poster in Training
StarZ is offline Offline
85 posts
since Dec 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Java Forum Timeline: Moving to Ingres is Easier, Company Says
Next Thread in Java Forum Timeline: How come it gives this error when I run a program?





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC