Couldn't you just do something like
if(artistName.equals("artistCD")){
//do something if it's true
}else{
//do something if it's false
}
where artistName is a variable for the artists name, and artistCD is a variable for the artist's cd. If that's not what you're looking for then I'm confused as to what you're asking