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.
Code depot of a Java EE / JSF developer
JSF / Eclipse / Tomcat kickoff tutorial
DAO kickoff tutorial
I ♥ Unicode
I agree. Here's the link:
subject: Converting long integer to byte
Compile error when I try to use float, works if I change it to double..
How to read "long" in to byte table
regarding forward referencing and 'implicit narrowing conversion'
writing 4 byte little-endian long integers
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2013