Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private String s;
- public void analyzeBookText(Scanner input) {
- while(input.hasNext()) {
- if(input.next() == "$$$END$$$") {
- break;
- }
- input.useDelimiter(".|!|?");
- s = input.next();
- }
- }
- public String getS() {
- return s;
- }
- public SentenceTally() {
- BookMain sentence = new BookMain();
- s = sentence.getS();
- }
Add Comment
Please, Sign In to add comment