KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > myapp > Main


1 package myapp;
2
3 import java.util.Arrays JavaDoc;
4 import filter.FilterProvider;
5 import filter.IFilter;
6
7 public class Main {
8     
9     public static void main(String JavaDoc[] args) {
10         String JavaDoc toFilter[] = new String JavaDoc[]{"one", "two", "tree", "four"};
11         IFilter filter = FilterProvider.getFilter();
12         System.out.println("Filtering with:"+filter.getClass());
13         String JavaDoc filtered[] = filter.filter(toFilter, "t");
14         System.out.println("Result :"+Arrays.asList(filtered));
15     }
16 }
17
Popular Tags