<tr>Test1</tr>Test String1
<tr>Test2</tr>Test String2
<tr>Test3</tr>Test String3
<tr>Test4</tr>Test String4
I need to fetch string (include tag) which are tag with <tr>
and </tr>
After extract I need to store those value in HashMap
like below
Map<String, String> map = new HashMap<>();
map.put("<tr>Test1</tr>", "");
map.put("<tr>Test2</tr>", "");
map.put("<tr>Test3</tr>", "");
map.put("<tr>Test4</tr>", "");
How to do that?