|
Browse by Tags
All Tags » java (RSS)
-
[quote user="HypocriteWorld"] I don't have a sister and I don't have a dog[/quote] You'd have both, if not for Java!
-
Found some code today: if(object.getClass().getName().toString().indexOf("Double") >= 0) { double d= (double)object; //do some stuff with d } Count the WTFs, include if you wish TRWTF is Java.
-
I can't tell whether this lunacy or stupidity: while (true) { long time_ = Calendar.getInstance().getTimeInMillis(); mInterval = time_ - mPrevTime; if ((mInterval > mSleepTime) || (mPrevTime == 0)) { //do some stuff mPrevTime = Calendar.getInstance().getTimeInMillis(); } } Time for you to pull...
-
[quote user="lizardfoot"]How are they going to get "teh codez" without being able to search on Google?[/quote] Do they actually use it? I thought they go straight to Java forums.
-
[quote user="mxsscott"] [quote user="fourchan"] I'm not a Java developer, but answer E looks correct to me. What am I missing? [/quote] That there is no main() method. [/quote] Oh, right, it's called "run". Smart you. Silly me.
-
Speaks for itself.... HasThisTypePatternTriedToSneakInSomeGenericOrParameterizedTypePatternMatchingStuffAnywhereVisitor
-
[quote user="fluffy777"] <pedantic> Wrong: The BOM is not valid for UTF-8, it's only needed to mark utf16-little-endian v.s. uft16-big-endian encodings. utf8 can't be big or little endian, they're probably converting from utf16le-windows to utf8 w/o stripping the BOM. <...
-
I know this is a bit of a religious issue for some, and I don't want to start a flame war, but this is something I've had to research a bit recently and I was wondering what other people's thoughts were. There seems to be a huge proliferation of Java web frameworks out there at the moment...
-
[quote user="MasterPlanSoftware"] The simple solution is to add a webservice layer in here. [/quote] Clearly this can be extracted to a propper class hierarchy. We create two servers which create two integers, then they send using Remote Method Invocation an invocation of a comparison and reply...
-
[quote user="quamaretto"] I don't really know Java, but I would assume... That at 128, new objects are instantiated for each Integer while there are existing objects cached for a range up to 127? [/quote] Looks like this is a test because somone does not trust the JVM doing object creations...
|
|
|