public int postWebPages(String[] args,int startIndexInArgs,OutputStream out){
  reset();
  LinkedHashSet<URL> s=new LinkedHashSet<>();
  for (int j=startIndexInArgs; j < args.length; j++) {
    try {
      URL u=new URL(normalizeUrlEnding(args[j]));
      s.add(u);
    }
 catch (    MalformedURLException e) {
      warn("Skipping malformed input URL: " + args[j]);
    }
  }
  backlog.add(s);
  return webCrawl(0,out);
}

public int postWebPages ( String [ ] args , int startIndexInArgs , OutputStream out ) { reset ( ) ; LinkedHashSet < URL > s = new LinkedHashSet < > ( ) ; for ( int j = startIndexInArgs ; j < args . length ; j ++ ) { try { URL u = new URL ( normalizeUrlEnding ( args [ j ] ) ) ; s . add ( u ) ; } catch ( MalformedURLException e ) { warn ( "Skipping malformed input URL: " + args [ j ] ) ; } } backlog . add ( s ) ; return webCrawl ( 0 , out ) ; }
this method takes as input a list of start url strings for crawling , adds each one to a backlog and then starts crawling
