Is there a way to typecast an array? I have got an array of MidiDevice.Info objects which I would like to cast into an array of strings (I have a getter which return type is an array of string)
public String[] getIns() {
if (mmj) return de.humatic.mmj.MidiSystem.getInputs();
else return ins; // javax.sound.midi.MidiDevice.Info[] ins;
} // which gives, of course an error
getMidiDeviceInfo
public static MidiDevice.Info[] getMidiDeviceInfo()
Obtains an array of information objects representing the set of all MIDI devices available on the system. A returned information object can then be used to obtain the corresponding device object, by invoking getMidiDevice.
Returns:
an array of MidiDevice.Info objects, one for each installed MIDI device. If no such devices are installed, an array of length 0 is returned.