@@ -0,0 +1,1512 @@
+%0Aimport java.io.*;%0Aimport java.util.*;%0A%0A/*%0A * To change this template, choose Tools %7C Templates and open the template in%0A * the editor.%0A */%0A/**%0A *%0A * @author Jack%0A */%0Apublic class YampPlaylist2 %7B%0A%0A    protected ArrayList%3CFile%3E playlist;%0A%0A    //Constructor%0A    public YampPlaylist2() %7B%0A        playlist = new ArrayList%3CFile%3E();%0A    %7D%0A%0A    //Load items to playlist from M3U file%0A    public void loadFromM3U() throws FileNotFoundException, IOException %7B%0A%0A        BufferedReader br = new BufferedReader(new FileReader(%22/Users/Jack/Desktop/list1.m3u%22));%0A%0A        String line = null;%0A        String songName = null;%0A        String songFile = null;%0A%0A%0A//        while ((line = br.readLine()) != null) %7B%0A//            if (line.trim().length() == 0) %7B%0A//                continue;%0A//            %7D%0A//            //SONG INFO FROM M3U FILE%0A//            if (line.startsWith(%22#%22)) %7B%0A//                if (line.toUpperCase().startsWith(%22#EXTINF%22)) %7B%0A//                    int indA = line.indexOf(%22,%22, 0);%0A//                    if (indA != -1) %7B%0A//                        songName = line.substring(indA + 1, line.length());%0A//                    %7D%0A//                %7D%0A//            %7D //SONG FILE FROM M3U FILE%0A//            else %7B%0A//                songFile = line;%0A//                File f = new File(songFile);%0A//%0A//                playlist.add(f);%0A//                songFile = null;%0A//                songName = null;%0A//            %7D%0A//        %7D%0A    %7D%0A%0A    public void appendElement(File f) %7B%0A        playlist.add(f);%0A    %7D%0A%7D%0A

Create YampPlaylist2.java