private String nextHost(){
  currentHost++;
  if (currentHost == hostsArray.length) {
    currentHost=0;
  }
  return hostsArray[currentHost];
}

private String nextHost ( ) { currentHost ++ ; if ( currentHost == hostsArray . length ) { currentHost = 0 ; } return hostsArray [ currentHost ] ; }
return the string ip of the next host using round - robin technique
