943,722 Members | Top Members by Rank

Ad:
  • Java Discussion Thread
  • Unsolved
  • Views: 2762
  • Java RSS
You are currently viewing page 2 of this multi-page discussion thread; Jump to the first page
Oct 24th, 2008
0

Re: Java program cd player need some help please

if it doesn't compile, it gives you an exception message. look at why it isn't compiling, in a lot of cases it states specificly what the problem is and on which line of which class it can be found.

if you can't find it, post the error message here
Reputation Points: 919
Solved Threads: 354
Nearly a Posting Maven
stultuske is offline Offline
2,487 posts
since Jan 2007
Oct 24th, 2008
0

Re: Java program cd player need some help please

Hi I have uploaded my current version as i am really stuck please take a look any help would be really nice it has been done in bluej

thanks
Attached Files
File Type: zip kentsound2.zip (705.3 KB, 25 views)
Reputation Points: 10
Solved Threads: 0
Newbie Poster
king000000 is offline Offline
9 posts
since Oct 2008
Oct 24th, 2008
0

Re: Java program cd player need some help please

Click to Expand / Collapse  Quote originally posted by king000000 ...
public void setTrack(int trackNumber){ this.track = trackNumber; // although I must say this.trackNumber = trackNumber sounds more logical, but then // it would be setTrackNumber(int trackNumber)}

this gives me incompatable types found int but expected Track
that's because you didn't follow naming conventions.

if you say: setTrack, that means you want to set the variable with the name 'track'
obviously, either your name for your method is wrongly chosen, or the argument you're passing is wrong
Reputation Points: 919
Solved Threads: 354
Nearly a Posting Maven
stultuske is offline Offline
2,487 posts
since Jan 2007
Oct 24th, 2008
0

Re: Java program cd player need some help please

ok this zip i uploaded is a school working i am ment to get player.class with all 5 methods working obviously its not straight foward, is there any charce in your looking through what i have done and if you can at least get the thing compiling id be really happy
Reputation Points: 10
Solved Threads: 0
Newbie Poster
king000000 is offline Offline
9 posts
since Oct 2008
Oct 24th, 2008
0

Re: Java program cd player need some help please

maybe I'll look at it tonight, but if it is just getting getters and setters to work, it's best for you to get it working on your own.
unless you manage to work with them in a proper way, you'll be failing the hell out of your class
Reputation Points: 919
Solved Threads: 354
Nearly a Posting Maven
stultuske is offline Offline
2,487 posts
since Jan 2007
Oct 24th, 2008
0

Re: Java program cd player need some help please

yeah guess so, but if you can havea look at it tonight that would be great
Reputation Points: 10
Solved Threads: 0
Newbie Poster
king000000 is offline Offline
9 posts
since Oct 2008
Oct 25th, 2008
0

Re: Java program cd player need some help please

If you tell us what the compiler errors are we will try to give you hints as to how to fix it yourself. That way you will learn more than if we just go ahead and fix it for you (which would be cheating btw). In the end you would only be cheating yourself...
Reputation Points: 395
Solved Threads: 192
Veteran Poster
darkagn is offline Offline
1,136 posts
since Aug 2007

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: Compile time error
Next Thread in Java Forum Timeline: F-keys in java





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


Follow us on Twitter


© 2011 DaniWeb® LLC