That method is not static so you will need an instance of stringFilter
to invoke that method.
You are calling an instance method on a null instance of stringFilter
0
solved java.lang.NullPointerException: Attempt to invoke virtual method java.lang.String [duplicate]