class TweetService {

	public List<Tweet> search(String someString) {
		List<Tweet> mentionedTweets = new ArrayList<Tweet>();
		for (Tweet tweet : findAll()) {
			if (tweet.getText().contains(someString)) {
				mentionedTweets.add(tweet);
			}
		}
		System.out.println("The following tweets with the word " + someString + " found: " + mentionedTweets);
		return mentionedTweets;
		
	}

}