Package filter.studio
Class FilterApps
java.lang.Object
filter.studio.FilterApps
- Author:
- __STUDENT_NAME__, Dennis Cosgrove (http://www.cse.wustl.edu/~cosgroved/)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfilterEvens(List<Integer> xs)Creates and returns a list whose contents are the filtered result of the specified input integers which are even.filterWordsWhichContainAllVowels(List<String> words)Creates and returns a list whose contents are the filtered result of the specified input words which contain each of the vowels 'a', 'e', 'i', 'o', and 'u'.
-
Constructor Details
-
FilterApps
public FilterApps()
-
-
Method Details
-
filterWordsWhichContainAllVowels
Creates and returns a list whose contents are the filtered result of the specified input words which contain each of the vowels 'a', 'e', 'i', 'o', and 'u'. The order in the input words must be preserved in the result. For example, if the input is ["parallel", "equation", "concurrent", "tenacious"] then the returned list should be ["equation", "tenacious"].- Parameters:
words- the specified list of words- Returns:
- the filtered list of specified words which contain each of the vowels
-
filterEvens
Creates and returns a list whose contents are the filtered result of the specified input integers which are even. The order in the input integers must be preserved in the result. For example, if the input is [12, 71, 100, 231, 404] then the returned list should be [12, 100, 404].- Parameters:
xs- the specified list of integers- Returns:
- the filtered list of specified integers which are even
-