private static boolean checkInstanceIdsReturnedFromAWS(int numberOfInstance,List<String> instanceIds){
  if (instanceIds == null || instanceIds.size() == 0) {
    return false;
  }
  return (instanceIds.size() == numberOfInstance);
}

private static boolean checkInstanceIdsReturnedFromAWS ( int numberOfInstance , List < String > instanceIds ) { if ( instanceIds == null || instanceIds . size ( ) == 0 ) { return false ; } return ( instanceIds . size ( ) == numberOfInstance ) ; }
checks if the required number of instanceids have been returned from aws for the requested number of resources to be provisioned .
