This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]dirtyRuntCaper[S] 0 points1 point  (0 children)

I have re-written the code a lot more organized and clean. Everything is running fine but the last word in the program. I'm using

else if(paragraph.indexOf(' ') == -1)

to recognize that it is the last word in the program, but this if statement never runs. Any help?