404142434445464748
class Gamepads { static int firstFound() { final Set<Integer> discoveredPads = discoverPads(); if (discoveredPads.isEmpty()) { throw new NoControllerFoundException(); } return discoveredPads.iterator().next(); }