vendredi 23 janvier 2015

choosing random element of array in java , if the length of the array is unknown

i Have the array of cookies



Cookie[] ncs = request.getCookies();


they have names like "n1","n2"..."n40".."nk" how to choose random cookie , without taking into account other cookies like "username" etc.





Aucun commentaire:

Enregistrer un commentaire