What does Set<element> mean?
问题 I'm kind of new to Android and I have to make a Bluetooth connection between two PCBs. I saw a line of code in API guides and I still haven't figure out what it means. I wonder if someone can help me. Here's that code: Set<BluetoothDevice> pairedDevices = mBluetoothAdapter.getBondedDevices(); What I can't understand is Set<BluetoothDevice> ! Why does they put something between "< >" . I've also seen than in ArrayAdapter<String> . What these elements do? 回答1: That makes the Set a Generic set.