From the other code, I think you are working on Java but this line bit confusing me,
var Bd=beaconDevices;
As if you are on Java then you have to use your code like,
List<BeaconDevice> B=beaconDevices;
for(i=0;i<B.Size();i++)
{
BeaconDevice beaconDevice = B.get(i);
}
1
solved How to manipulate LIst