Advertisement
Guest User

Untitled

a guest
Jan 20th, 2012
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. String authorString = "Originally Posted By:";
  2. Scanner scanner = new Scanner(clean);
  3. try {
  4. while (scanner.hasNextLine()){
  5. String line = new String(scanner.nextLine());
  6. String author = new String(line.split(authorString)[1]);
  7. String[] tmp = author.split("<");
  8. author = new String(tmp[0]);
  9. while (clean.contains(author)){
  10. //if (line.contains(authorString)){
  11. Log.d("AUTHORS!", author + "\n");
  12. clean.replace(author, "");
  13. }
  14. }
  15. } catch (Exception e) {
  16.  
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement