title: Filtering string in java
body: <p>It's not about filtering bad words so get in. Imagine that you have list of strings named as
  abcd,abcde,abcdef,abfg,abdc if a user gives string abc as filter in ConsoleProgram abcd,abcde and abcdef will be printed out. I thought about using substring but I couldn't achieved it does anybody have any idea .. 
  note that I am new to java and not competent thanks! </p>