My input file will be look like this
போதும் 1 போதும் 2 போதும் 3 போதும் 4 போதும் 5 போதும் 6 போதும் 7 போதும் 8 போதும் 9 போதும் 10 போதும் 11 போட்டால் 1 போட்டால் 2 பொன் 1 பொன் 2 பொன் 3 பொன் 4 பொன் 5
and my output want to be as
போதும் 11 போட்டால் 2 பொன் 5
How to select the each word with its maximum value using java program. Pls suggest me any ideas. Thanks in advance.
Something along these lines:
HashMap<String, Integer>Scanner can help with this part)map.put(word, value)If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With