Java program cd player need some help please

Reply

Join Date: Jan 2007
Posts: 706
Reputation: stultuske is a jewel in the rough stultuske is a jewel in the rough stultuske is a jewel in the rough 
Solved Threads: 84
stultuske's Avatar
stultuske stultuske is offline Offline
Master Poster

Re: Java program cd player need some help please

 
0
  #11
Oct 24th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 9
Reputation: king000000 is an unknown quantity at this point 
Solved Threads: 0
king000000 king000000 is offline Offline
Newbie Poster

Re: Java program cd player need some help please

 
0
  #12
Oct 24th, 2008
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, 1 views)
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 706
Reputation: stultuske is a jewel in the rough stultuske is a jewel in the rough stultuske is a jewel in the rough 
Solved Threads: 84
stultuske's Avatar
stultuske stultuske is offline Offline
Master Poster

Re: Java program cd player need some help please

 
0
  #13
Oct 24th, 2008
Originally Posted by king000000 View Post
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
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 9
Reputation: king000000 is an unknown quantity at this point 
Solved Threads: 0
king000000 king000000 is offline Offline
Newbie Poster

Re: Java program cd player need some help please

 
0
  #14
Oct 24th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Jan 2007
Posts: 706
Reputation: stultuske is a jewel in the rough stultuske is a jewel in the rough stultuske is a jewel in the rough 
Solved Threads: 84
stultuske's Avatar
stultuske stultuske is offline Offline
Master Poster

Re: Java program cd player need some help please

 
0
  #15
Oct 24th, 2008
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
Reply With Quote Quick reply to this message  
Join Date: Oct 2008
Posts: 9
Reputation: king000000 is an unknown quantity at this point 
Solved Threads: 0
king000000 king000000 is offline Offline
Newbie Poster

Re: Java program cd player need some help please

 
0
  #16
Oct 24th, 2008
yeah guess so, but if you can havea look at it tonight that would be great
Reply With Quote Quick reply to this message  
Join Date: Aug 2007
Posts: 790
Reputation: darkagn has a spectacular aura about darkagn has a spectacular aura about darkagn has a spectacular aura about 
Solved Threads: 109
darkagn's Avatar
darkagn darkagn is online now Online
Master Poster

Re: Java program cd player need some help please

 
0
  #17
Oct 25th, 2008
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...
There are no stupid questions, only those too stupid to ask for help.
echo is a web developer's best friend.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



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

©2003 - 2009 DaniWeb® LLC