-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathSong.java
More file actions
34 lines (27 loc) · 696 Bytes
/
Copy pathSong.java
File metadata and controls
34 lines (27 loc) · 696 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
package com.example.catie.musicplayerapp;
/**
* {@link Song} represents a song that the user wants to listen to.
* It contains a song title and artist name for that song.
*/
public class Song {
/**Title of the song */
private String mSongTitle;
/**Artist name */
private String mArtistName;
public Song(String songTitle, String artistName) {
mSongTitle = songTitle;
mArtistName = artistName;
}
/**
*Get the title of the song.
*/
public String getSongTitle() {
return mSongTitle;
}
/**
* Get the name of the artist for the song.
*/
public String getArtistName() {
return mArtistName;
}
}