And yeah, I could clear all the interviews I faced because of you. What more is needed to say you made my career? Thanks a lotttttttt..As a quote goes, donating money to someone may prove helpful to him at that point of time but helping someone earn will help him for lifetime and this is what you are doing. Many thanks..
Earlier I was not that clear with the implementation of groupingBy() but this video is a gem, which helped me to understand the usage and implementation. Thanks for creating such wonderful content.
I was checking videos for rest APIs and landed on your video from there this is my 7th or 8th video of yours. Continuously watching as all of the concepts are explained very well with practical and all are very interesting. I did not even get bored. Thank you so much mam for teaching us. Please make a video of a spring boot project from the start.🤍
Yesterday I was able to watch another of your incredible videos, but today, it feels like I am witnessing a fragment of the past, when parents were screaming at me because I don't get stuff. I need a calmer version of this.
I have a question in(video 5:41) Unique and duplicate names. I obesrved unique names output. It was wrong because "code" is repeated unique names output and duplicate names output. I want a solution for this. I faced difficulty in an interview. If possible please answer ASAP.
Nice Series, on the Interview Questions and I am feeling Self Confident to crack the interviews. Specially the Java 8 programs, I was lacking in that, these videos made my life easy.. Many thanks to Code Decode. Keep creating the content, it is very useful..
Hi , One of the interview question as shown below: Suppose we have List => (id,name,salary,city). Now we need to get the unique list based on Name or salary etc, pls let us know the different ways to achieve it. Thank you.
Mam, I have gone through your Microservices videos too. Not sure if I missed something but I need Resilience4j features including bulkhead. Very much addicted to your videos. Now it feels like I can understand things from no other resource but yours. Please make a video on entire Resilience4j.
Hi Mam ..I am big fan of yours the way you explained is really awesome . When I watch your videos and then go for interview interviews it really really impress the panel which were sitting in front me. One suggestion mam the slide which you were explaining can you add it in comment section so that I can refer that slide at the time of interview at the end moment like notes. And also mam please make project on Springboot, angular, mysql or oracle DB if possible microservice also add whole concept in one project. It will really helpful for us.. Thank you so much Mam
Awesome Shraddha. Many congratulations on successfully clearing interviews. Yeah we are planning to give ppt In a way that wont harm us and help you too. Currently we will face copyright issues if shared directly that's why we are trying ways
@@CodeDecode also mam please make project on Springboot, angular, mysql or oracle DB if possible microservice also add whole concept in one project. It will really helpful for us..
I love your videos.. How can i know the sequence to read for java8. Can you help me with a link or any way how i can know the videos to start with followed by the next as i dont see numbering
Before giving all this, say that ypu can just add the List, into the SetList constructor method, Java will convert into Set automatically and discard all the duplicates, but if your interviewer wants a stream solution, you can show the ones from this video.
3 Approach 1. Using add() method of Set to verify the element is already present or not. 2. Using groupingBy() method. 3. Using frequency() method of Collections class.
List list1 = new ArrayList(Arrays.asList(1, 2, 3, 4, 5, 4, 3)); List list2 = new ArrayList(Arrays.asList(1, 3, 4, 6, 10)); Set uniqueElements = new HashSet(list1); uniqueElements.addAll(list2); uniqueElements.forEach(System.out::println); Hope it helps
@@swapnareddy4938 List list1 = new ArrayList(Arrays.asList(1, 2, 3, 4, 5, 4, 3)); List list2 = new ArrayList(Arrays.asList(1, 3, 4, 6, 10)); List uniqueElements = Stream.concat(list1.stream(),list2.stream()).distinct().collect(Collectors.toList()); uniqueElements.forEach(System.out::println); Hope it helps :)
//Please explain how to Write Java 8 program to return word as a list value and its length as a key in descending sorting order from below sentence, -Input => String statement = "Hello World My name is Jane and I hate Mango Fruit"; Output=> {5 = [“Hello”, “World”, “Mango”, “Fruit”], 4 = [“name”, “Jane”, “hate”], 3 = [“and”], 2 = [“My”, “is”], 1 = [“I”]}
Pseudo code : Split string by space, create list from array of string. Open stream on list Group by string's length n values will become list of all strings of that length👍
String statement = "Hello World My name is Jane and I hate Mango Fruit"; String[] str = statement.split(" "); TreeMap ansMap = Arrays.stream(str). collect(Collectors.groupingBy(String::length, () -> new TreeMap(Comparator.reverseOrder()), Collectors.toList())); System.out.println(ansMap);
in the first approach as you mentioned finding duplicate and unique elements at a time having a issue in the explanation you cant find unique and duplicate element in one go why because lets take an example you are holding two strings "code" and "code" which means those are duplicate while adding first time to the list it will add to unique element and second time it will add to duplicate element list so hence it was duplicate element naa so how can we say it is a unique element also
Very well explained..thank you so much ma'am But, In First way, as you said we can get unique elements too.. but it's not the case as for first time when "code" comes it will get added to uniqueNames set and second time it restricts..so we need to add further logic for unique elements
Awesome content as always! Please keep on creating more coding questions using java 8. Also, Can you please upload playlist on Dropwizard java framework as well just like you did for spring boot. Truly appreciate your efforts :)
Again sorry for disappointment Shubham. It's not true. And we can't reveal us bcz we all are working IT professionals. Our jobs will come to stake if we did that. But yes can say, none of us is Kshitija here in our team code decode.
And yeah, I could clear all the interviews I faced because of you. What more is needed to say you made my career? Thanks a lotttttttt..As a quote goes, donating money to someone may prove helpful to him at that point of time but helping someone earn will help him for lifetime and this is what you are doing. Many thanks..
This comment made my day Manogna. Many congratulations to you for your interviews 👏👏🙂🙂. Well deserved 👏👏👏👏👏👏. Thanks a lot for being with us.
hi
You were fresher or experienced at the time of interview.
Hi , Thank you very much 😊 because of you I cleared 3 MNC interviews.
Well deserved Varun. Many congratulations 🎉🎉🎊🎊🎊👍👍keep shining Man 🎊🎊🎊🎊
Which all?
mam tussi great ho...... continue grt work .....tq so much and lots of love.
Thanks mate. By watching your videos i was able to clear 2 out of 3 interviews and got offer. ❤️ And respect for you ma'am
Many congratulations Rishabh 👏👏👏👏well deserved Man 👏👏👏🎊🎊. Thanks a lot 🙏
Earlier I was not that clear with the implementation of groupingBy() but this video is a gem, which helped me to understand the usage and implementation.
Thanks for creating such wonderful content.
Thanks a ton Rajat 😊👍
I was checking videos for rest APIs and landed on your video from there this is my 7th or 8th video of yours. Continuously watching as all of the concepts are explained very well with practical and all are very interesting. I did not even get bored. Thank you so much mam for teaching us. Please make a video of a spring boot project from the start.🤍
th-cam.com/play/PLyHJZXNdCXsdXxY8wupiLenux2Yafn1lN.html
Thanks Shoeb 🙂👍
Amazing content. 4 days to go...for the interview. Thank you❤
All the very best for interview
Yesterday I was able to watch another of your incredible videos, but today, it feels like I am witnessing a fragment of the past, when parents were screaming at me because I don't get stuff. I need a calmer version of this.
So sorry if you feel so Man. We apologies for this. We will try to be more calmer and composed. Thanks for pointing it up
Very well explained ...thanks for covering a problem in different ways
Thanks Swapnil🙂🙂👍👍
Your explanation is very well.
Thanks
Liked even without watching ,😁.
Your content is awesome...
Thanks a lot Manoj 🙂👍
Hi, ur videos were really helpful to me in cracking interviews.
Clearly explained. Thanku so much
Thanks Bhuvana 🙂👍
I have a question in(video 5:41)
Unique and duplicate names.
I obesrved unique names output. It was wrong because "code" is repeated unique names output and duplicate names output. I want a solution for this. I faced difficulty in an interview. If possible please answer ASAP.
I had same question.
Nice Series, on the Interview Questions and I am feeling Self Confident to crack the interviews.
Specially the Java 8 programs, I was lacking in that, these videos made my life easy..
Many thanks to Code Decode.
Keep creating the content, it is very useful..
Excellent coverage on Duplicate elements, Thanks for such a nice explanation.
Thanks Rajiv 🙂👍
You are the best..nice explanation..keep it up.🙂
Thanks abhishek
Thankyou for all your java related imp questions and answers it is really helping me for interviews☘️
Thanks ❤
You are awesome 👍. Cracked 2 interviews only watching your videos 😘😘
Awesome Sayali. Well deserved girl. Keep learning keep shining ⭐✨⭐✨⭐✨⭐✨🎊🎊🎉🎉🎉
explained very nicely.keep posted..
Thanks 😊
@CodeDecode in line 71, we dont need filter function, just adding into set will remove duplicates. But anyways i learn and enjoy your videos thanks
Good one, keep making videos like this..
Thanks Shekar 👍
This is my first comment and i really appreciate you mam for spending ur time and posting some good content thank you for that
Thanks for supporting us Arun . Much appreciated. Thanks a lot🙂🙂👍👍
Very helpful. Thanks for this.
Thanks Sayan 🙂🙂
Very nicely explained and covered three to four concepts. Thanks 🙂
🙂🙂👍👍
u ar awsm ma'am
Thanks Tannu🙂🙂
Thank so much for helping us
Always there Harish 🙂🙂👍👍
Hi , One of the interview question as shown below:
Suppose we have List => (id,name,salary,city).
Now we need to get the unique list based on Name or salary etc, pls let us know the different ways to achieve it.
Thank you.
i dont understand the question. Name or/and salary?
Use comparator interface and sort it based on salary or name
Mam, I have gone through your Microservices videos too. Not sure if I missed something but I need Resilience4j features including bulkhead. Very much addicted to your videos. Now it feels like I can understand things from no other resource but yours. Please make a video on entire Resilience4j.
Nice topic Manogna sure we will create videos on microservice design pattern 🙂👏
Hi Mam ..I am big fan of yours the way you explained is really awesome . When I watch your videos and then go for interview interviews it really really impress the panel which were sitting in front me.
One suggestion mam the slide which you were explaining can you add it in comment section so that I can refer that slide at the time of interview at the end moment like notes.
And also mam please make project on Springboot, angular, mysql or oracle DB if possible microservice also add whole concept in one project. It will really helpful for us..
Thank you so much Mam
Awesome Shraddha. Many congratulations on successfully clearing interviews. Yeah we are planning to give ppt In a way that wont harm us and help you too. Currently we will face copyright issues if shared directly that's why we are trying ways
@@CodeDecode also mam please make project on Springboot, angular, mysql or oracle DB if possible microservice also add whole concept in one project. It will really helpful for us..
Nice suggestion Shraddha. Sure we will do that 🙂🙂👍👍
Great work ❤️🙏
Thanks Ahish 🙂👍
Thank you 😊
You're welcome
Thanks 😃
You're welcome
Very well explained mam..
Could u plz help me to get 2nd part of this video ...
Sure 👍👍
Can u plz make video on implementation explanation of hld with example plz...as its askd in interview
Brilliant!
Thanks
Too good
Thanks Adarsh 😇👍👍
I love your videos.. How can i know the sequence to read for java8. Can you help me with a link or any way how i can know the videos to start with followed by the next as i dont see numbering
Before giving all this, say that ypu can just add the List, into the SetList constructor method, Java will convert into Set automatically and discard all the duplicates, but if your interviewer wants a stream solution, you can show the ones from this video.
Because of you I am getting offer letters 😅
It's your hard work that's paying off Shubham. Well done 🎉🎉🎉🎉keep learning keep shining ⭐✨⭐✨⭐✨⭐✨
Can you do a video on Event Driven Architecture and also Kafka?
Sure we will create video on that soon 🙂👍
Could you do one video on only maps in collection
Hi Mam,
Can you please cover any one of the Nosql DB?
Thanks in advance
th-cam.com/video/DuYDUBydRL4/w-d-xo.html
Here u go Anuradha. This may help u. 🙂👍
3 Approach
1. Using add() method of Set to verify the element is already present or not.
2. Using groupingBy() method.
3. Using frequency() method of Collections class.
👍👍❤️
Hi, Can you please make a tutorial video on basics and how to use streams in Java 8🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
th-cam.com/play/PLyHJZXNdCXsdeusn4OM33415DCMQ6sUKy.html
Here we have all tutorial from basics too 🙂👍👍
Mam what is -> operator.
Please make a separate video
th-cam.com/play/PLyHJZXNdCXsdeusn4OM33415DCMQ6sUKy.html
Buddy, Can you please explain how Function.identity() is taking the name as its key.?
Hi
We have two lists l1 n l2 with some integers.
How to print unique elements by comparing two lists.could please tell
U can add those 2 list elements in 1 list & convert to set I think
List list1 = new ArrayList(Arrays.asList(1, 2, 3, 4, 5, 4, 3));
List list2 = new ArrayList(Arrays.asList(1, 3, 4, 6, 10));
Set uniqueElements = new HashSet(list1);
uniqueElements.addAll(list2);
uniqueElements.forEach(System.out::println);
Hope it helps
@@chandugaddam4985 using stream and lamda
@@amarthyaseshu683 using streams and lambda
@@swapnareddy4938
List list1 = new ArrayList(Arrays.asList(1, 2, 3, 4, 5, 4, 3));
List list2 = new ArrayList(Arrays.asList(1, 3, 4, 6, 10));
List uniqueElements = Stream.concat(list1.stream(),list2.stream()).distinct().collect(Collectors.toList());
uniqueElements.forEach(System.out::println);
Hope it helps :)
//Please explain how to Write Java 8 program to return word as a list value and its length as a key in descending sorting
order from below sentence, -Input => String statement = "Hello World My name is Jane and I hate Mango Fruit";
Output=> {5 = [“Hello”, “World”, “Mango”, “Fruit”], 4 = [“name”, “Jane”, “hate”],
3 = [“and”], 2 = [“My”, “is”], 1 = [“I”]}
Pseudo code :
Split string by space, create list from array of string.
Open stream on list
Group by string's length n values will become list of all strings of that length👍
String str="Hello Hi Hower yu";
String[]s= str.split(" ");
Maphm=Arrays.stream(s).collect(Collectors.groupingBy(String::length,TreeMap::new,Collectors.toList()));
hm.forEach(
(k,v)->{
System.out.println(k);
System.out.println(v);
}
);
String statement = "Hello World My name is Jane and I hate Mango Fruit";
String[] str = statement.split(" ");
TreeMap ansMap = Arrays.stream(str).
collect(Collectors.groupingBy(String::length, () -> new TreeMap(Comparator.reverseOrder()), Collectors.toList()));
System.out.println(ansMap);
in the first approach as you mentioned finding duplicate and unique elements at a time having a issue in the explanation
you cant find unique and duplicate element in one go why because
lets take an example you are holding two strings "code" and "code" which means those are duplicate while adding first time to the list it will add to unique element and second time it will add to duplicate element list so hence it was duplicate element naa so how can we say it is a unique element also
Very well explained..thank you so much ma'am
But,
In First way, as you said we can get unique elements too.. but it's not the case as for first time when "code" comes it will get added to uniqueNames set and second time it restricts..so we need to add further logic for unique elements
Pass the list in set constructor. it filters. Automatically and gives unique values. Or collectors.toset also works.
Awesome content as always!
Please keep on creating more coding questions using java 8.
Also, Can you please upload playlist on Dropwizard java framework as well just like you did for spring boot.
Truly appreciate your efforts :)
Sure Karishma thanks 🙂🙂👍👍
First example explanation was too confusing maam ❤
I want a super like button for this channel 😀
Haha. Thanks a ton for supporting us 🙂👍
How do you compare data from an excel sheet with db data
Convert excel sheet data to java Dto Or pojo. Then u can easily compare it with db entity. 🙂👍
Hi, can you pls share this spring boot crud project github or video link please
Ohh actually we removed the code while giving demo. Will try to push code to git.
@@CodeDecode thanks 🙏
Hii kshitija mam😍
Sorry for disappointment Shubham, but who is Kshitija?
@@CodeDecode what is your name
@@CodeDecode your name is kshitija.😍
Again sorry for disappointment Shubham. It's not true. And we can't reveal us bcz we all are working IT professionals. Our jobs will come to stake if we did that. But yes can say, none of us is Kshitija here in our team code decode.
@@CodeDecode ,😍
Videos are very informative but the voice could be a bit calmer, it feels like someone is screaming in my ears !!!😅
Can you plz share the github link
System.out.println(nameList.stream().collect(Collectors.groupingBy(String::new, Collectors.counting())));