SHARE
TWEET

Untitled

a guest Sep 21st, 2019 93 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. Set<String> s = new HashSet<>();
  2.  
  3. for (String line = r.readLine(); line != null; line = r.readLine()) {
  4.  
  5. for (String text : s) {
  6.  
  7. if (!text.endsWith(line))
  8.  
  9. w.println(text);
  10.  
  11. }
  12.  
  13. s.add(line);
  14.  
  15. }
  16.  
  17. }
  18. }
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
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top