alteracoes classe
This commit is contained in:
parent
5a0e1dc335
commit
dbaec404d7
|
|
@ -28,7 +28,7 @@ public class Template {
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* leitura das musicas e geração dos objetos Track
|
* leitura das musicas e geracao dos objetos Track
|
||||||
*/
|
*/
|
||||||
public static Track[] inserirPlaylist(int quantidade, String idList[], String totalMusicList[]) throws ParseException {
|
public static Track[] inserirPlaylist(int quantidade, String idList[], String totalMusicList[]) throws ParseException {
|
||||||
Track musicas[] = new Track[quantidade];
|
Track musicas[] = new Track[quantidade];
|
||||||
|
|
@ -46,7 +46,7 @@ public class Template {
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* leitura de todas as linhas da entrada padrão
|
* leitura de todas as linhas da entrada padrao
|
||||||
*/
|
*/
|
||||||
public static int entradaPadrao(String idList[]) throws IOException {
|
public static int entradaPadrao(String idList[]) throws IOException {
|
||||||
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
|
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,3 @@
|
||||||
package classe;
|
|
||||||
|
|
||||||
import java.text.ParseException;
|
import java.text.ParseException;
|
||||||
import java.text.SimpleDateFormat;
|
import java.text.SimpleDateFormat;
|
||||||
|
|
@ -10,7 +9,8 @@ public class Track {
|
||||||
// (0)valence,(1)year,(2)acousticness,(3)artists,(4)danceability,(5)duration_ms,(6)energy,
|
// (0)valence,(1)year,(2)acousticness,(3)artists,(4)danceability,(5)duration_ms,(6)energy,
|
||||||
// (7)explicit,(8)id,(9)instrumentalness,(10)key,(11)liveness,(12)loudness,(13)mode,
|
// (7)explicit,(8)id,(9)instrumentalness,(10)key,(11)liveness,(12)loudness,(13)mode,
|
||||||
// (14)name,(15)popularity,(16)release_date,(17)speechiness,(18)tempo
|
// (14)name,(15)popularity,(16)release_date,(17)speechiness,(18)tempo
|
||||||
private String id; // 8
|
private String nome;
|
||||||
|
private String id; // 8
|
||||||
private String key; // 10
|
private String key; // 10
|
||||||
private String artists; // 3
|
private String artists; // 3
|
||||||
private Date realease; // 16
|
private Date realease; // 16
|
||||||
|
|
@ -207,7 +207,7 @@ public class Track {
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public Elemento clone() {
|
public Track clone() {
|
||||||
Track novo = new Track();
|
Track novo = new Track();
|
||||||
novo.nome = this.nome;
|
novo.nome = this.nome;
|
||||||
novo.id = this.id;
|
novo.id = this.id;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue