Thank you so much, I'm glad you found the explanation of HashMap helpful. If you have any further questions or need clarification on any aspect of HashMap or related topics, please feel free to ask. Your feedback is greatly appreciated!
Thank you so much for your kind words! I'm glad you found the explanation helpful. I appreciate your suggestion about making videos on Java interview questions. Stay tuned for more content, and feel free to share any other topics you'd like me to cover.
public class Test { public static void main(String[] args) { String s ="ABBCCCDDDD"; int n = s.length(); // A1B2C3D4 int count=1; Map map = new LinkedHashMap();
good teacing all the best for birght future
Thank you very much for your encouraging words! I'm truly grateful for your support and well wishes.
Good teaching
Thank you
Maam in line no 29 , if we remove the space or double quotation..then why it is giving us output as integer values?
great explanation for hashmap
Thank you so much, I'm glad you found the explanation of HashMap helpful. If you have any further questions or need clarification on any aspect of HashMap or related topics, please feel free to ask. Your feedback is greatly appreciated!
The way of explanation is really so good madam could u make vedeos on java interview qusstikns to crack the interview please make it madam.
Thank you so much for your kind words! I'm glad you found the explanation helpful.
I appreciate your suggestion about making videos on Java interview questions.
Stay tuned for more content, and feel free to share any other topics you'd like me to cover.
hash map does not follow the insertion order right?
Yes, you are right
@@sowdhama int that case how to print the insertion order
@@vijaykumar-ut1ze you can use LinkedHashMap,
It keeps the keys in the order they were inserted
@@sowdhama got it thanks
Can you create frame work related interview wuestions
Input is String str="AAAABBBCCA" output : A=4 B=3 C=2 A=1 (Ask this program recent interview) pls provide solution
you can use Java8 feature for this.
i was also asked this question
public class Test {
public static void main(String[] args) {
String s ="ABBCCCDDDD";
int n = s.length();
// A1B2C3D4
int count=1;
Map map = new LinkedHashMap();
for(int i=0 ; i1)
{
System.out.print(z+""+map.get(z));
}
}
}
}
Benki
This solution will not work if we have repeating characters ex: aabbcccaadd -> a2b2c3a2d2. But great explnation
Hi Deepak,
could you please lt know what we need to do to make this work?
This is false, just try it yourself, works perfectly! :D
this solution perfectly works