Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

JAVA

Name: Anonymous 2008-01-28 15:51

What is the Java equivalent of strcmp()?

Name: Anonymous 2008-01-28 16:01

==

Name: Anonymous 2008-01-28 16:03

StringComparisonFactory.new(string).compareWithString(otherString.comparableSingleton.createCompareFactory(CASE_COMPARE));

Name: Anonymous 2008-01-28 16:11

string.compareTo(otherString)

== does weird things

Name: Anonymous 2008-01-28 16:13

i should add though that strcmp() is rather silly and you probably just want to use string.equals(otherString)

Name: Anonymous 2008-01-28 16:17

You probably just want to use another language

Name: Anonymous 2008-01-28 16:18

>>3
ENTERPRISE

Name: Anonymous 2008-01-28 16:50

>>5
WHAT THE FUCK ARE YOU PEOPLE GOING TO ANSWER ME OR WHAT

Name: Anonymous 2008-01-28 16:51

No, go away

Name: Anonymous 2008-01-28 16:55

>>1
SICP

Name: Anonymous 2008-01-28 16:59

>>8
DON'T HELP HIM

Name: Anonymous 2008-01-28 17:05

no one on here can help you, as it is mostly trolls. no one can actually program on this board.

Name: Anonymous 2008-01-28 17:08

>>12
I'm a clueless faggot.

Fixed

Name: Anonymous 2008-01-28 17:28

>>12
I'm a carless cudder.

Fixed

Name: Anonymous 2008-01-28 17:37

>>1
There isn't one that is the exact equivalent (as others have already pointed out) - but you could write an equivalent method by comparing strings character by character.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List