我想在Java中開發音樂播放器。我需要提供曲目信息提供曲目標題,專輯標題和藝術家的名字。 我的代碼如下類型gracenote java api
results = api.searchTrack("The Final Countdown", "The Final Countdown", "Europe");
System.out.println(results.getAlbumData(0, "genre").toString());
我所得到的輸出是
[[email protected],
[email protected],
[email protected],
[email protected],
[email protected],
[email protected],
[email protected],
[email protected],
[email protected]]
請你幫我這個,什麼是這些結果意味着
可能的結果會返回一些集合,並且您可能需要遍歷集合調用更具體的getter方法,而不是toString來查看所獲得的結果。你已經爲你的圖書館獲得了API(希望),並且你需要研究它以查看需要調用的內容。 –