Question: I need java code that will go through multiple lines of a text document and find words and punctuation and classify them. I am looking

I need java code that will go through multiple lines of a text document and find words and punctuation and classify them. I am looking for 4 things Greeting, Place, Name and a Period at the end

---example of text structure:---

Hello world my name is java.

Hello world my name is C++.

Hello my name is Ruby.

-----------------------------------------

the code should produce the following.

word designation

Word Designation
Hello Greeting
world place
java name
. period

ect

the code needs to be dynamic so that I can insert any text document with the structure above. thanks in advance

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!