File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Java in General
Converting long integer to byte
Joined: Sep 25, 2008
Jan 22, 2009 07:18:10
I'm making a small application for J2ME. I need to convert long integer to byte table. Those long integers can very long like this: 3460215174411169804
How can I read this long to this kind of byte-table:
byte table = new byte;
I would like to see some examples.
Remember, I'm using J2ME, so I don't have all the classes in use, what can be use in J2SE.
Joined: Oct 08, 2006
Jan 22, 2009 07:27:26
Don´t doublepost. Please stick to one topic. If you have new questions regarding to the given answers, post them in the originating topic instead of repeating the topic.
With a little knowledge, a
cast iron skillet
is non-stick and lasts a lifetime.
subject: Converting long integer to byte
How to read "long" in to byte table
writing 4 byte little-endian long integers
regarding forward referencing and 'implicit narrowing conversion'
Compile error when I try to use float, works if I change it to double..
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013