I receive some data through udp and here I do some operation on the data and save it in bin array. the problem is that it seems all the data that is reveived is always saved into bin[0] , it means that each time it rewrite bin[0] while I want to add items each time to bin .
also I want to know what is the maximum size of an array ? after some times should I clear the array ? because I receive a large size of data via udp .
how could I manage this array ?
int[] bin =new int[] {(-1) * unbinary(binary(data[2*i+1]-1)+binary(data[2*i]))};
1