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

Pages: 1-

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.

Name: Anonymous 2008-01-28 18:27

>>15
No, string.compareTo(string) is pretty much exactly the same.
http://java.sun.com/javase/6/docs/api/java/lang/String.html#compareTo(java.lang.String)

Name: Anonymous 2008-01-28 20:30

>>1
See >>16, as >>2-15 and >>17-999 fail.

Name: Anonymous 2008-01-28 23:46

>>17
lol you failed
and so did i
but you lost the game

Name: Anonymous 2008-01-29 1:47

>>12
only 3 people post here
me
you
Sussman

Name: Anonymous 2009-03-18 3:49

I feel the need, the need for weed!

Marijuana MUST be legalized.

Name: Anonymous 2009-03-18 3:49

I wants lots and lots of some delectable pot!

Marijuana MUST be legalized.

Name: Anonymous 2013-01-19 23:39

/prog/ will be spammed continuously until further notice. we apologize for any inconvenience this may cause.

Name: Anonymous 2013-09-01 13:56


If the axiom of choice holds, every cardinal κ has a successor κ+ > κ, and there are no cardinals between κ and its successor. For finite cardinals, the successor is simply κ + 1. For infinite cardinals, the successor cardinal differs from the successor ordinal.

Name: Anonymous 2013-09-01 16:14


The field of effective descriptive set theory is between set theory and recursion theory. It includes the study of lightface pointclasses, and is closely related to hyperarithmetical theory. In many cases, results of classical descriptive set theory have effective versions; in some cases, new results are obtained by proving the effective version first and then extending ("relativizing") it to make it more broadly applicable.

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