Public feed #376522

Anonymous

public text v1 · immutable
Raw Edit
·published 2007-03-01 02:30 UTC
rendered paste body
for (int i=0; i<results.length; i++){

            	//WordInSentence is a class which takes the input "snippet" and the "searchword" - both are type String
            	//it searches for the searchword and returns a stringbuffer snippet with all the sentences that
            	//contain my name
            	
                //is it alright to instantiate new WordInSentence(results[i].getSnippet(),search); again and again? memory issues?

                content = new WordInSentence(results[i].getSnippet(),search);
                snippet = content.getSentences();
              
            }