Follow Slashdot blog updates by subscribing to our blog RSS feed

 



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);

        }
}

Android

Are There Any Smartphones That Respect Privacy? 478

An anonymous reader writes "After many years I am finally considering entering the smartphone era. Within the mainstream, there seem to be four OS choices: Windows, Android, Blackberry, or iOS: Android comes out as clear winner to me. However, all of the choices in one way or another require sharing a lot of personal information in the Cloud run by their respective corporations. Let alone Blackberry's centralized mail servers; there is no way to have an Android smartphone working decently without sharing all of your contacts, calendar appointments, and other stuff with Google. While Android is less intrusive than iOS, the lack of privacy remains quite annoying no matter how comfortable it is to have your own calendar and contacts centralized. In 2011 is there any option, other than living in a cave, to keep one's own life private while enjoying the wonders of modern smartphone apps?"

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

I tell them to turn to the study of mathematics, for it is only there that they might escape the lusts of the flesh. -- Thomas Mann, "The Magic Mountain"

Working...