How do you read an int from a txt file.

Woah lolz… Who would do this with ByteBuffers? What I’d do is implement my own ByteBufferInputStream then, and let that one use java.nio buffer reading and use the java.io classes like BufferedReader to read things. But srsly… why would anyone do this with ByteBuffers, such a hard way?!?

Why would anyone use Java7? :l

Only on JGO will a newbie question like “How do you parse an integer?” turn into a discussion on NIO buffers, JSON serialization, new Java 7 features, binary data streams…

;D

The question is: why wouldn’t anyone use Java 7? :wink:

Kind of offtopic now… but how’s the state with java 7 on Linux now? Does it crash and give strange exceptions, or other weird stuff I’ve heard?

It’s already pushed to www.java.com so it should be very stable by now.

Personally I won’t touch it for years if I can avoid it. :]

Ok then, avoid the speed optimizations :slight_smile:

That is the main reason for me to change… (and those little underscores which you can put into numbers :> and those 00011001b bit assigns :>)

But what is keeping me is the unstability… I’m kind of “afraid” of moving to Java 7 … :confused: Though they got the new GC and the other stuff and so on…

I’ve been using it for a year and no problems…

You’re on windows, right?

Windows 7 64-bit…why?

Cause linux is another story

Last I heard it works well…except for applets.

Well I’ve got Win7 64bit as well but Java7 hasn’t agreed with me the times I’ve tried it. There’s no compelling reason to make the switch yet. Efficiency is negligible unless it isn’t. And for most things it isn’t is, at least for me.

I don’t see the attraction with the b thingy that lets you play around with plain bits. Hex displays bits much better and is a lot more packed and concise. IMHO.

don’t know what you are talking about, I’m using java 7 (openjdk and oracle) on ubuntu and never had any problems