So, I am trying to read in a document (.txt) into a java project using a buffered reader, edit it, and return it/output it. The issue I'm having is that I can't get the punctuation to be recognized. The document reads:
hello hello.hello,hello/hello?
As a test of the different circumstances I want to be able to handle. And I get:
hello hello hello hello hello
Any suggestions? (will provide sections of code if needed for answer) I was thinking about using a delimiter but can't figure out how that would be contextually (or if it is even possible with a buffered reader).
BTW, I am reading and editing this document character by character and running it through checks in multiple arrays for including certain characters. If that helps.