Browse Source
Changes in the Structure if device.usbPlayer , USB_Stick.java was added and changes in the UsbPlayer.java
feature-pr-USB-otherTests
Changes in the Structure if device.usbPlayer , USB_Stick.java was added and changes in the UsbPlayer.java
feature-pr-USB-otherTests
sahar
3 years ago
2 changed files with 67 additions and 21 deletions
@ -0,0 +1,41 @@ |
|||
package device.usbPlayer; |
|||
|
|||
import java.util.ArrayList; |
|||
|
|||
public class USB_Stick { |
|||
|
|||
public ArrayList<ArrayList<String>> albums = new ArrayList<>(); |
|||
|
|||
USB_Stick() { |
|||
ArrayList<String> a1 = new ArrayList<String>(); |
|||
a1.add("Musik 01.mp3"); |
|||
a1.add("Musik 02.mp3"); |
|||
a1.add("Musik 03.mp3"); |
|||
albums.add(0,a1); |
|||
|
|||
ArrayList<String> a2 = new ArrayList<String>(); |
|||
a2.add("File 01.txt"); |
|||
a2.add("File 01.txt"); |
|||
a2.add("File 01.txt"); |
|||
albums.add(1,a2); |
|||
|
|||
ArrayList<String> a3 = new ArrayList<String>(); |
|||
a3.add("Photo 01.gif"); |
|||
a3.add("Photo 02.gif"); |
|||
a3.add("Photo 03.gif"); |
|||
albums.add(2,a3); |
|||
|
|||
ArrayList<String> a4 = new ArrayList<String>(); |
|||
a4.add("Music 01.mp3"); |
|||
a4.add("Music 02.mp3"); |
|||
a4.add("Music 03.mp3"); |
|||
albums.add(3,a4); |
|||
|
|||
} |
|||
public ArrayList<String> getAlbum(){ |
|||
return albums.get(0); |
|||
} |
|||
|
|||
} |
|||
|
|||
|
Write
Preview
Loading…
Cancel
Save
Reference in new issue