JAVA
1
Name:
Anonymous
2008-01-28 15:51
What is the Java equivalent of strcmp()?
2
Name:
Anonymous
2008-01-28 16:01
==
3
Name:
Anonymous
2008-01-28 16:03
StringComparisonFactory.new(string).compareWithString(otherString.comparableSingleton.createCompareFactory(CASE_COMPARE));
4
Name:
Anonymous
2008-01-28 16:11
string.compareTo(otherString)
== does weird things
5
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)
6
Name:
Anonymous
2008-01-28 16:17
You probably just want to use another language
7
Name:
Anonymous
2008-01-28 16:18
8
Name:
Anonymous
2008-01-28 16:50
>>5
WHAT THE FUCK ARE YOU PEOPLE GOING TO ANSWER ME OR WHAT
9
Name:
Anonymous
2008-01-28 16:51
No, go away
10
Name:
Anonymous
2008-01-28 16:55
11
Name:
Anonymous
2008-01-28 16:59
12
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.
13
Name:
Anonymous
2008-01-28 17:08
>>12
I'm a clueless faggot.
Fixed
14
Name:
Anonymous
2008-01-28 17:28
>>12
I'm a carless cudder.
Fixed
15
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