Comment déclarer et itérer sur un tableau associatif en bash :
declare -A array
array[foo]=bar
array[bar]=foo
for i in "${!array[@]}"
do
echo "key : $i"
echo "value: ${array[$i]}"
done
ArrayList reslist = new ArrayList();
reslist.add....
return reslist.toArray(new DeviceId[reslist.size()]);