1,105,328 Community Members

comparing two strings with linear search..

Member Avatar
Newbie Poster
1 post since Oct 2003
Reputation Points: 0 [?]
Q&As Helped to Solve: 0 [?]
Skill Endorsements: 0 [?]

* Compares an artist string to this CD's artist to check if the
* two strings match exactly (ignoring case).
* @param otherArtist An artist's name.
* @return true if otherArtist and artist variables are the same
* ignoring case (String comparison).
public boolean equalsArtist( String otherArtist ) {
return false;

how do i do this i am kinda confused any help would be cool

Member Avatar
Junior Poster
117 posts since Jul 2003
Reputation Points: 32 [?]
Q&As Helped to Solve: 2 [?]
Skill Endorsements: 5 [?]

Couldn't you just do something like

    //do something if it's true
    //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 :P

This article has been dead for over three months: Start a new discussion instead
Start New Discussion
Tags Related to this Article