Java Program to Count Number of Duplicate Words in Given String

preview_player
Показать описание
Java Program to Count Number of Duplicate Words in Given String

~~~Subscribe to this channel, and press bell icon to get some interesting videos on Selenium and Automation:

Follow me on my Facebook Page:

Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:

WebServices API Automation Tutorials:

Follow me on my Facebook Page:

Let's join our Automation community for some amazing knowledge sharing and group discussion on Telegram:

Paid courses (Recorded) videos:
📗 Get My Paid Courses at
Paid courses (Recorded) videos:
-------------------------------

✔️SOCIAL NETWORKS
--------------------------------

Support My Channel✔️Or Buy Me A Coffee
--------------------------------
✔️Thanks for watching!
देखने के लिए धन्यवाद
Благодаря за гледането
感谢您观看
Merci d'avoir regardé
Grazie per la visione
Gracias por ver
شكرا للمشاهدة
Рекомендации по теме
Комментарии
Автор

The way you are explaining the logic while writing it is crystal clear even to a beginner. Thanks a lot for sharing all the videos. I have also tried the above program using Set and it worked.

nagaswetha
Автор

I am loving coding only because the way you explain every logic Sir... Thank you🙏

varshamishra
Автор

TBH your code complexity is more challenging for beginner level coders But seriously it motivates to learn more and more...!! Thank you :)

mohammadsuhail
Автор

Thank you sharing your knowledge with the whole world, you are doing a great job and you are a role model!

Tistasful
Автор

The best channel for Automation. Kudos to you Naveen. Keep up the good work.

sankarsan
Автор

To extract all the keys of map I have used Iterator and it’s really nice that it can be achieved using Set as well in simple way.
Thank you so much Naveen Bhayya.

pavankumarkj
Автор

Very much thankful for the video, much needed small but most asked topic got covered 👍😊

SarangHoley
Автор

Thanks Naveen..your way of explaining things is too good!

anshumansehgal
Автор

Learned a lot from your videos Naveen, thanks for sharing your knowledge 📖📚📝

zareenabegum
Автор

Thank you so much Naveen. 😍 you are helping out a lot of people 👏👏👏

vetriselvansp
Автор

Hi Naveen,
I think this can be solved using Set also, without involving Map, as below:


String[] strArray = inputString.split("\\s");


HashSet<String> set = new HashSet<String>();

for (String arrayElement : strArray)
{
if(!set.add(arrayElement))
{
System.out.println("Duplicate Element is : "+arrayElement);
}
}

amolnawale
Автор

Always the best Naveen...you are superb...

mamasahoo
Автор

Incredibly awesome video. Keep up the great work!

EdClarkHYCT
Автор

Wonderful naveen. I'm a follower from dc. Great video. More!

IntellectOnly
Автор

Always so helpful videos for me. Thanks a ton :)

divineIncarnation
Автор

Hello Naveen,
Thanks for your vedio. Its really understandable.Here are my questions, if you find time, please answer and that will help me.


1. What is the role of toLowerCase() method here, Why its not converting upper case in input to Lowercase
2. Can we use entrySet instead of Keyset for traversing the elements?

parimalaperiyasamy
Автор

Small Suggestion, If you explain the same thing with diagram of array and hashmap would give more clarification

anvitaravirajmetri
Автор

Hi Naveen good explanation, is there any other method to find the duplicate.

zakir
Автор

Thanks for the video .I am looking count JSON response duplicate ? Can we use this concept in groovy ?

ramupanjala
Автор

Thank so much bro its very useful for my interview

karthickmohan
welcome to shbcf.ru