Guest User

Untitled

a guest
Apr 22nd, 2018
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. private String s;
  2. public void analyzeBookText(Scanner input) {
  3. while(input.hasNext()) {
  4. if(input.next() == "$$$END$$$") {
  5. break;
  6. }
  7. input.useDelimiter(".|!|?");
  8. s = input.next();
  9.  
  10. }
  11. }
  12. public String getS() {
  13. return s;
  14. }
  15.  
  16. public SentenceTally() {
  17. BookMain sentence = new BookMain();
  18. s = sentence.getS();
  19. }
Add Comment
Please, Sign In to add comment