Skip to Main Content

New to Java

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Getting equivalent byte value for an int

807597Mar 22 2005 — edited Mar 22 2005
I have converted chars to ints for storage in an array, and the corresponding array positions hold the frequency of the byte with the same value

ie. the value of bytes corresponding to 'A' is stored in array position 65

This is not the greatest system for doing this, just roll with it though.

My problem is now getting this informaiton out. I want to convert the array position (array) to a byte, so that 65 will be stored as byte 'A'.

array[i].byteValue

doesn't work. Is this not what I should be doing here? Kinda stuck, and I can't pinpoint it but I think something is fuzzy with my logic.

Any help would be great. Thanks in advance.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 19 2005
Added on Mar 22 2005
23 comments
281 views