import javax.bluetooth.DiscoveryListener;

public class BTApp implements Runnable, DiscoveryListener {

private Vector devices = new Vector();

/* in some method, a Bluetooth inquiry is started */
discoveryAgent.startInquiry(DiscoveryAgent.GIAC, this);

public void deviceDiscovered(RemoteDevice btDevice, DeviceClass cod) {
// same device may found several times during single search if (devices.indexOf(btDevice) == -1) {
devices.addElement(btDevice);
}
}

}

what BTApp would likely be doing when it executes and starts to discover other Bluetooth devices.
Mr. Jack Chan owns a restaurant though is seldom there
himself. He wants to know
• how crowded his restaurant can get at different times of the day, and
• if the same people goes to his restaurant, and how often they go, that is, are there regular customers?
Explain briefly (you do not have to give any code) how you can use
BTApp to help Mr. Chan with the above, and what shortcomings (if any) of this approach might be.

i am very confused