| | |
Java program cd player need some help please
![]() |
•
•
•
•
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 |
account android api applet application array arrays automation bidirectional binary birt bluetooth class classes client code columns component constructor database designadrawingapplicationusingjavajslider draw eclipse error errors exception expand fractal game givemetehcodez graphics gui guidancer homework html ide image inetaddress inheritance integer intellij j2me java javamicroeditionuseofmotionsensor javaprojects jlabel jme jni jpanel jtextfield jtree julia linux list loop map method methods midlethttpconnection mobile mobiledevelopmentcreatejar monitoring myaggfun netbeans newbie nullpointerexception open-source oracle plazmic print problem program project property recursion ria scanner search server set sharepoint smart sms smsspam sort sourcelabs splash sql sqlite static string subclass support swing testautomation threads tree unlimited webservices windows





