esp8266 connect when starting to which AP?

   String ssid = WiFi.SSID(index); // @suppress("Invalid arguments")

Eclipse offers fixes in a pop-up on the error mark on left margin. most of the time they are not useful. (for Java it works much better)