Follow Slashdot stories on Twitter

 



Forgot your password?
typodupeerror

Comment Re:5 Seconds (Score 1, Redundant) 478

5 Seconds sound like the real thing: from http://news.ycombinator.com/item?id=3940683

From OpenJDK:
private static void rangeCheck(int arrayLen, int fromIndex, int toIndex) {
                                if (fromIndex > toIndex)

                                                throw new IllegalArgumentException("fromIndex(" + fromIndex +
                                                                                            ") > toIndex(" + toIndex+")");

                                if (fromIndex arrayLen)
                                                throw new ArrayIndexOutOfBoundsException(toIndex);

                }
From Google:
private static void rangeCheck(int arrayLen, int fromIndex, int toIndex) {
                                if (fromIndex > toIndex)
                                                throw new IllegalArgumentException("fromIndex(" + fromIndex +
                                                                                            ") > toIndex(" + toIndex+")");

                                if (fromIndex arrayLen)
                                                throw new ArrayIndexOutOfBoundsException(toIndex);

                }
}

Comment Re:A high schooler? (Score 5, Insightful) 478

For those interested: (from http://news.ycombinator.com/item?id=3940683)

From OpenJDK:
private static void rangeCheck(int arrayLen, int fromIndex, int toIndex) {
                if (fromIndex > toIndex)

                        throw new IllegalArgumentException("fromIndex(" + fromIndex +
                                              ") > toIndex(" + toIndex+")");

                if (fromIndex arrayLen)
                        throw new ArrayIndexOutOfBoundsException(toIndex);

        }
From Google:
private static void rangeCheck(int arrayLen, int fromIndex, int toIndex) {
                if (fromIndex > toIndex)
                        throw new IllegalArgumentException("fromIndex(" + fromIndex +
                                              ") > toIndex(" + toIndex+")");

                if (fromIndex arrayLen)
                        throw new ArrayIndexOutOfBoundsException(toIndex);

        }
}

Comment Re:yeah... (Score 2) 232

"Immediately disclose the government's knowledge of and communications with extraterrestrial beings"

What kind of moron write a petition implying he undoubtedly KNOW THAT THE US GOV. had communication with extraterrestrial beings, no one can take a moron like that seriously.

Slashdot Top Deals

"Any excuse will serve a tyrant." -- Aesop

Working...