public static void main()

in s1e1-totally-lit/hue-lifx-java/src/main/java/com/awslabs/iot_all_the_things/special_projects_edition/totally_lit/hue/HueDanceParty.java [19:32]


    public static void main(String[] args) throws ExecutionException, InterruptedException {
        HueShared.exitAndShowUsageIfNoArgs(args, "hue-dance-party.sh");

        HueShared.setUsername(args[0]);

        List<Light> lights = HueShared.getLightsOrExitIfEmpty(args);

        log.info("Dance party with " + lights.size() + " light(s) starting now. Press CTRL-C to stop.");

        while (true) {
            lights.forEach(HueDanceParty::setRandomColor);
            Shared.sleep(250);
        }
    }