From ca035a17cb3164604a39c543a1146b7f18e1b4af Mon Sep 17 00:00:00 2001 From: sahar Date: Fri, 18 Feb 2022 12:39:25 +0100 Subject: [PATCH] changes saved --- src/main/java/device/usbPlayer/UsbPlayer.java | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/main/java/device/usbPlayer/UsbPlayer.java b/src/main/java/device/usbPlayer/UsbPlayer.java index e3394a7..fbb8aa4 100644 --- a/src/main/java/device/usbPlayer/UsbPlayer.java +++ b/src/main/java/device/usbPlayer/UsbPlayer.java @@ -2,6 +2,7 @@ package device.usbPlayer; import device.Device; +import java.lang.reflect.Method; import java.util.ArrayList; public class UsbPlayer implements Device { @@ -178,7 +179,13 @@ public class UsbPlayer implements Device { @Override public String[] getOptions() { - return new String[0]; + + Method[] methods=this.getClass().getDeclaredMethods(); + String[] methodsList =new String[methods.length]; + for (int i = 0; i