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..
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 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.🤍
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 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..
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..
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 , 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 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
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 :)
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 :)
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
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.
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.
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
//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);
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?
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
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 🙏
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.🤍
ruclips.net/p/PLyHJZXNdCXsdXxY8wupiLenux2Yafn1lN
Thanks Shoeb 🙂👍
mam tussi great ho...... continue grt work .....tq so much and lots of love.
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 😊👍
You are the best..nice explanation..keep it up.🙂
Thanks abhishek
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.
Liked even without watching ,😁.
Your content is awesome...
Thanks a lot Manoj 🙂👍
Very well explained ...thanks for covering a problem in different ways
Thanks Swapnil🙂🙂👍👍
Amazing content. 4 days to go...for the interview. Thank you❤
All the very best for interview
Great work ❤️🙏
Thanks Ahish 🙂👍
Your explanation is very well.
Thanks
Clearly explained. Thanku so much
Thanks Bhuvana 🙂👍
u ar awsm ma'am
Thanks Tannu🙂🙂
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🙂🙂👍👍
Hi, ur videos were really helpful to me in cracking interviews.
explained very nicely.keep posted..
Thanks 😊
Thank you 😊
You're welcome
Excellent coverage on Duplicate elements, Thanks for such a nice explanation.
Thanks Rajiv 🙂👍
Good one, keep making videos like this..
Thanks Shekar 👍
Thanks 😃
You're welcome
Very helpful. Thanks for this.
Thanks Sayan 🙂🙂
Thank so much for helping us
Always there Harish 🙂🙂👍👍
Thankyou for all your java related imp questions and answers it is really helping me for interviews☘️
Thanks ❤
Very nicely explained and covered three to four concepts. Thanks 🙂
🙂🙂👍👍
You are awesome 👍. Cracked 2 interviews only watching your videos 😘😘
Awesome Sayali. Well deserved girl. Keep learning keep shining ⭐✨⭐✨⭐✨⭐✨🎊🎊🎉🎉🎉
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..
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 🙂👏
Brilliant!
Thanks
Very well explained mam..
Could u plz help me to get 2nd part of this video ...
Sure 👍👍
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 🙂🙂👍👍
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.
👍👍❤️
Too good
Thanks Adarsh 😇👍👍
Can you do a video on Event Driven Architecture and also Kafka?
Sure we will create video on that soon 🙂👍
Hi, Can you please make a tutorial video on basics and how to use streams in Java 8🙏🏻🙏🏻🙏🏻🙏🏻🙏🏻
ruclips.net/p/PLyHJZXNdCXsdeusn4OM33415DCMQ6sUKy
Here we have all tutorial from basics too 🙂👍👍
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
Can u plz make video on implementation explanation of hld with example plz...as its askd in interview
Hi Mam,
Can you please cover any one of the Nosql DB?
Thanks in advance
ruclips.net/video/DuYDUBydRL4/видео.html
Here u go Anuradha. This may help u. 🙂👍
Because of you I am getting offer letters 😅
It's your hard work that's paying off Shubham. Well done 🎉🎉🎉🎉keep learning keep shining ⭐✨⭐✨⭐✨⭐✨
@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
Mam what is -> operator.
Please make a separate video
ruclips.net/p/PLyHJZXNdCXsdeusn4OM33415DCMQ6sUKy
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
Could you do one video on only maps in collection
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 🙂🙂👍👍
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 :)
Buddy, Can you please explain how Function.identity() is taking the name as its key.?
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. 🙂👍
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
I want a super like button for this channel 😀
Haha. Thanks a ton for supporting us 🙂👍
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.
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 ,😍
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 🙏
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.
//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);
First example explanation was too confusing maam ❤
Can you plz share the github link
Videos are very informative but the voice could be a bit calmer, it feels like someone is screaming in my ears !!!😅
annoying
Apologies 🙏 ammar al balawi
System.out.println(nameList.stream().collect(Collectors.groupingBy(String::new, Collectors.counting())));