I have this int vector:
int[] vetor = new int [dataRegCodeToCompare.length];
and this vector byte: (which receives the digest of another byte array)
byte[] dataRegCodeToCompare = md5.digest(toHash);
I want to put the values of the byte array dataRegCodeToCompare
in the array int vetor
. But, without converting the values; for example in dataRegCodeToCompare[0]=12
so I want vetor[0]=dataRegCodeToCompare[0]
that vetor[0]=12
. This is with all values of array
.
I can not just make vetor = dataRegCodeToCompare
.