import javax.sound.*;
however when I did this today it still required me to import each part of the sound package that i wanted to use
import javax.sound.midi.MidiEvent; import javax.sound.midi.MidiSystem; import javax.sound.midi.Sequence; import javax.sound.midi.Sequencer; import javax.sound.midi.ShortMessage; import javax.sound.midi.Track;
It doesn't matter two much sense eclipse will auto add most of the imports but in a real app this is going to leave me with a LONG list of imports. The book I am reading told me to use the * and just have the one import and that seems the best method to me. Is there a reason why just using the first example up there will not compile?


Sign In
Create Account



Back to top









