You are not instantiating the class Practice. You should do that and fill its list
list and then call filter. I am just pasting the main method for you here.
Practice practice = new Practice();
practice.list.add("Hello");
practice.list.add("Sam");
practice.list.add("Washington");
practice.filter();
for(int i=0; i<practice.list.size(); i++)
System.out.println(practice.list.get(i));