Code example for TimeUnit

Methods: toMinutes, toSeconds

0
		if(milliseconds == 0) {
			return "0:00"; 
		} else if((milliseconds % 1000) == 0) {
			return (milliseconds / 1000) + ":00";
		} 
		String minute = TimeUnit.MILLISECONDS.toMinutes(milliseconds) + "";
		String seconds = Long.toString(TimeUnit.MILLISECONDS
				.toSeconds(milliseconds)
				- TimeUnit.MINUTES.toSeconds(TimeUnit.MILLISECONDS
						.toMinutes(milliseconds)));
		if (seconds.length() == 1) {
			seconds = "0" + seconds;
		} 
		return minute + ":" + seconds;
	} 
 
	public int getTrack() { 
		return track;
	} 
 
	public String getArtist() {