I am new using java. I wanted to ask, if I have a text file containing different words per line and I want to read that file as a string in order to detect if there are certain words that are written in all caps (abbreviations). The exception being that if the word starts with "#" or and "@" it will ignore counting it. For example I have:
OMG terry is cute #HAWT SMH
The result will be: Abbreviations = 2.
or
terry likes TGIF parties @ANDERSON
The result will be: Abbreviations = 1.
Please help