src/controller/WebSearchEngine.java
//finds strings with similar pattern and calls edit distance() on those strings
finds strings with similar pattern and calls edit distance() on those strings
finds strings with similar pattern and calls edit distance () on those strings
public static void findData(File _sourceFile,int fileNumber,Matcher _m3,String p1) throws FileNotFoundException,ArrayIndexOutOfBoundsException
	{
		try
		{
			BufferedReader _rederObject = new BufferedReader(new FileReader(_sourceFile));
			String line = null;
			while ((line = _rederObject.readLine()) != null){
				_m3.reset(line);
				while (_m3.find()) {
					key.add(_m3.group());
				}
			}
			_rederObject.close();
			for(int p = 0; p<key.size(); p++){ 
				numbers.put(key.get(p), editDistance(p1.toLowerCase(),key.get(p).toLowerCase()));
			}
		}     
		catch(Exception e)
		{
			System.out.println(">>Exception on findData:"+e);
		}
	}
public static void findData ( File _sourceFile , int fileNumber , Matcher _m3 , String p1 ) throws FileNotFoundException , ArrayIndexOutOfBoundsException { try { BufferedReader _rederObject = new BufferedReader ( new FileReader ( _sourceFile ) ) ; String line = null ; while ( ( line = _rederObject . readLine ( ) ) != null ) { _m3 . reset ( line ) ; while ( _m3 . find ( ) ) { key . add ( _m3 . group ( ) ) ; } } _rederObject . close ( ) ; for ( int p = 0 ; p < key . size ( ) ; p ++ ) { numbers . put ( key . get ( p ) , editDistance ( p1 . toLowerCase ( ) , key . get ( p ) . toLowerCase ( ) ) ) ; } } catch ( Exception e ) { System . out . println ( ">>Exception on findData:" + e ) ; } }
finds strings with similar pattern and calls edit distance() on those strings
finds strings with similar pattern and calls edit distance () on those strings