The program now makes FOUR attempts to read Input Stream from each device, repeatedly with a while(true) loop