daily pastebin goal
58%
SHARE
TWEET

Untitled

a guest Feb 20th, 2019 55 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public void listMatching(String searchString)
  2.     {
  3.         boolean checker = false;
  4.         for(String filename : files){
  5.             if(checker == false && filename.contains(searchString)){
  6.                 // A match.
  7.                 System.out.println(filename);
  8.                 checker = true;
  9.             }
  10.             else if(checker == false && !filename.contains(searchString)) {
  11.                 System.out.println("Files sucks");
  12.                 checker = true;
  13.             }
  14.         }
  15.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top