| | |
comparing two strings with linear search..
![]() |
•
•
Join Date: Oct 2003
Posts: 1
Reputation:
Solved Threads: 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
* 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
Last edited by antaeus; Oct 15th, 2003 at 6:24 pm.
Couldn't you just do something like
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
Java Syntax (Toggle Plain Text)
if(artistName.equals("artistCD")){ //do something if it's true }else{ //do something if it's false }
![]() |
Similar Threads
- Comparing strings in Java? (Java)
- Help for comparing strings and copying strings please. (C++)
- problem comparing strings (PHP)
- Linear search (C++)
- Linear Search (Java)
Other Threads in the Java Forum
- Previous Thread: Enemy Storage/Selection file
- Next Thread: New to Java
| Thread Tools | Search this Thread |
android api applet application apps array arrays automation awt bidirectional binary birt bluetooth businessintelligence busy_handler(null) card chat class classes client code collision columns component constructor crashcourse database designadrawingapplicationusingjavajslider draw eclipse error errors eventlistener exception expand fractal game givemetehcodez graphics gui guidancer html ide image inetaddress integer intellij j2me java javadoc javafx javamicroeditionuseofmotionsensor javaprojects jme jni jpanel jtree julia linux list loop machine map method methods mobile mobiledevelopmentcreatejar myaggfun netbeans newbie oracle plazmic print problem program programming project radio recursion scanner server set sharepoint smart sms smsspam sort sortedmaps sql string subclass support swing textfield threads tree unlimited utility webservices windows





