public void processpage(URL url, String page)	

{ String lcPage = page.toLowerCase(); // Page in lower case
int index = 0; // position in page
int iEndAngle, ihref, iURL, iCloseQuote, iHatchMark, iEnd;
while ((index = lcPage.indexOf("<a",index)) != -1) {
 iEndAngle = lcPage.indexOf(">",index);
 ihref = lcPage.indexOf("href",index);
 if (ihref != -1) {
   iURL = lcPage.indexOf("\"", ihref) + 1; 
   if ((iURL != -1) && (iEndAngle != -1) && (iURL < iEndAngle))
     { iCloseQuote = lcPage.indexOf("\"",iURL);
       iHatchMark = lcPage.indexOf("#", iURL);
       if ((iCloseQuote != -1) && (iCloseQuote < iEndAngle)) {
         iEnd = iCloseQuote;
         if ((iHatchMark != -1) && (iHatchMark < iCloseQuote))
          iEnd = iHatchMark;
         String newUrlString = page.substring(iURL,iEnd);
          addnewurl(url, newUrlString); 
      } } }
 index = iEndAngle;
}
}