This discussion is archived
4 Replies Latest reply: Oct 26, 2006 3:38 AM by 807598 RSS

how to know the length of a Byte array?

807598 Newbie
Currently Being Moderated
how to know the length a byte array if it is an argument of the method, e.g.
public byte[] hash(byte[] data) throws Exception

I wanna store the length of data into a integer in the method of hash, but no idea how to get it