ya what 'catraz said is correct.
make a constructor for your Track class, maybe one that declares your title artist adn duration variables. Then in your TestTrack class, in the main method, do something like :
Track mytrack = new Track (title, artist, duration);
then use the code you...