| | |
Java program cd player need some help please
Please support our Java advertiser: Programming Forums - DaniWeb Sister Site
![]() |
•
•
•
•
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
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
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. ![]() |
Similar Threads
- Can java do this??? (Java)
- java, bluetooth. cellphones and media player (Java)
- run time errors when using IE (Web Browsers)
- Need Help with ArrayList sorting (Java)
- JMF question: question about the unrealized player (Java)
- how will i repeat my whole game program? (Java)
- i need help with my program guys, how to (Java)
Other Threads in the Java Forum
- Previous Thread: Compile time error
- Next Thread: F-keys in java
| Thread Tools | Search this Thread |
Tag cloud for Java
addressbook android api apple applet application arguments array arrays automation binary bluetooth button calculator chat class classes client code columns component converter database draw eclipse error errors event exception file fractal ftp game givemetehcodez graphics gridlayout gui helpwithhomework html ide image inetaddress input integer j2me japplet java javaprojects jme jmf jni jpanel julia link linux list loop map method methods midlethttpconnection mobile netbeans newbie number objects openjavafx oracle php print problem program programming project projects recursion rim scanner screen server set signing size smart sms socket sort sql storm string support swing test threads time tree unlimited variablebinding webservices windows





