- Green versionCheck
- Green versionCheck
- Green versionCheck
- Green versionCheck
- Green versionCheck
Related source code:
To be able to implement functions like Baidu music search, a plug-in netmp3.jar is also needed to implement it.
import netmp3.search.SearchMp3;
import netmp3.search.MusicInfo;
import java.util.*;
public class Demo2 {
public static void main(String args[]) {
ArrayList<MusicInfo> musicList = new ArrayList<MusicInfo>();
SearchMp3 sm = new SearchMp3("One thousand years later");
sm.setArrayList(musicList);
sm.search();
System.out.println("Display results:");
//That is to say, the search results will be stored in musicList.
for (int i = 0; i < musicList.size(); i++) {
System.out.println(musicList.get(i));
}
}
}
it works
it works
it works