| | |
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
Views: 1661 | Replies: 16
| Thread Tools | Search this Thread |
Tag cloud for Java
3d @param affinetransform android api apple applet application arc arguments array arrays automation binary bluetooth byte c# chat class classes click client code color compare component corrupted database detection draw eclipse error event exception file fractal game givemetehcodez graphics gui guitesting helpwithhomework html ide image input integer j2me java java.xls javaprojects jmf jni jpanel julia keytool keyword linux list loop map method methods mobile netbeans newbie number object oracle pong print problem producer program programming project projectideas read recursion reflection rim scanner screen server set size sms socket sort sql string swing terminal test threads time transfer tree web windows





