|
-
January 10th, 2005, 06:53 AM
#1
vector or array (language understanding problem)
Hi,
simple question for java guru, less simple question for vb guru (me)
I have got a program that javax.comm for serial communication.
javax.comm uses byte arrays for communicating.
I have got several kind messages to send, so I created an interface that hold the internal data and performs some calculation for the crc.
some functions :
BuildMessage
getMessageCount
getResponce
CalcCRC()
my question is, what is the best way in java hold the byte array.
for example 1 message can be an array of 8 bytes and another can be 5 arrays of 80/80/80/80 and 45 in byte size.
I know that there is an byte object. so what is the best way of keeping the information?
in vb I hold the array in a collection but what is the best way in Java?
thx,
Jewe
(java wanna be)
A VB programmer trying to stay alive in a Real C World
 If the hardware is so great.. why use software to correct it..?? It will only slow it down..
 Al is de hardware nog zo snel de software achterhaalt het wel 
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|