I have to make a constructor in the class CancionImpl
that receives a string with the values of the properties separated by semicolons (;), in the following order: type id String
, artist type Artist, duration in seconds, type name String
, popularity type Integer
. I do not know how to get artist or duration.
public CancionImpl(String s) {
String[] trozos = s.split(";");
...
...
}