When, Set allows duplicates?
Examples:
Set<String> nameSet = new Set<String>;
nameSet.add(srinu);
nameSet.add(SRINU);
nameSet.add(Srinu);
Map<String,String> cityMap = new Map<String,String>;
cityMap .put('Newyork', USA);
cityMap .put('newyork',US);
cityMap .put('NEWYORK','America');
From the above examples, nameSet and cityMap allows all the three values because set and map key treat the values with different case as different values that means set string values are case-sensitive.
How to avoid?
Use the below method before adding string value to set or map key.
How to use above method?
Examples:
Set<String> nameSet = new Set<String>;
nameSet.add(srinu);
nameSet.add(SRINU);
nameSet.add(Srinu);
Map<String,String> cityMap = new Map<String,String>;
cityMap .put('Newyork', USA);
cityMap .put('newyork',US);
cityMap .put('NEWYORK','America');
From the above examples, nameSet and cityMap allows all the three values because set and map key treat the values with different case as different values that means set string values are case-sensitive.
How to avoid?
Use the below method before adding string value to set or map key.
//Generic method to search a string from set of strings and which will ignore case-sensitive public static Boolean isStrExists(Set<String> strSet,String searchStr) { Boolean isTrue = false; if(strSet != null && strSet.size() > 0) { for(String strVal : strSet) { if(strVal.equalsIgnoreCase(searchStr)) { isTrue = true; break; } } } return isTrue; }
How to use above method?
if(!isStrExists(nameSet,'SRINU')) nameSet.add('SRINU');
Excellent post!!! The future of cloud computing is on positive side. With most of the companies integrate Salesforce CRM to power their business; there is massive demand for Salesforce developers and administrators across the world. Salesforce Training Institutes in Chennai
ReplyDeleteThe effectiveness of IEEE Project Domains depends very much on the situation in which they are applied. In order to further improve IEEE Final Year Project Domains practices we need to explicitly describe and utilise our knowledge about software domains of software engineering Final Year Project Domains for CSE technologies. This paper suggests a modelling formalism for supporting systematic reuse of software engineering technologies during planning of software projects and improvement programmes in Project Centers in Chennai for CSE.
DeleteSoftware management seeks for decision support to identify technologies like JavaScript that meet best the goals and characteristics of a software project or improvement programme. JavaScript Training in Chennai Accessible experiences and repositories that effectively guide that technology selection are still lacking.
Aim of technology domain analysis is to describe the class of context situations (e.g., kinds of JavaScript software projects) in which a software engineering technology JavaScript Training in Chennai can be applied successfully
In coming years, cloud computing is going to rule the world. The cloud based CRM tool provider like Salesforce have massive demand in the market. Thus talking Cloud Computing Training in Chennai from reputed Cloud Computing Courses will ensure bright career prospects for aspiring professionals.
ReplyDeleteGreat Article. Thank you for sharing! Really an awesome post for every one.
DeleteProject Centers in Chennai
JavaScript Training in Chennai
Final Year Project Domains for IT
JavaScript Training in Chennai
Thanks for sharing your informative Blog!...
ReplyDeleteFinal Year Project Center in Chennai | No.1 Project Center in Chennai | Project Center in Velachery
Wonderful post. keep sharing regularly....Linux Training Institute in Chennai | Linux Training Institute in Velachery.
ReplyDeleteVery interesting and good article, it is very useful to me... keep rocks.. thanks for sharing your valuable time and views....
ReplyDeleteSalesforce Training in chennai | Salesforce Training in velachery
Very interesting..Your way of explaining the code is very useful from me..Thanks a lot..
ReplyDeleteSoftware Testing Training in Chennai |No.1 Selenium Training Institute in Chennai | Web Designing Training Institute in Chennai
Excellent blog which helps me to get the in depth knowledge about the technology, Thanks for sharing such a nice blog. MCSE Training Institute in Chennai | MCSA Training Institute in Chennai | Hardware & Networking Training in Chennai
ReplyDeleteAwesome post it's really useful from me..Kindly keep sharing such a nice post..
ReplyDeleteJava Training Institute in Chennai | DotNet Training Institute in Chennai | Web Designing Training Institute in Chennai
The best thing is that your blog really informative thanks for your great information..Final Year Project Center in Chennai | Final Year Project Center in Velachery
ReplyDeleteGood information to sharing..Thank you.
ReplyDeleteRobotics Training Center in Chennai | Robotics Project Center in Chennai | Robotics Training Institute in Velachery
Great tips and its so easy to understand. Kindly keep updating such a nice article..
ReplyDeletePCB Training Institute in Chennai | PCB Training Center in Chennai | PCB Training in Velachery
Awesome Blog, you have provided the right information that will be beneficial to us. Thanks for sharing your valuable Ideas to our vision. Linux Training in Chennai | Unix Training in Chennai | Python Training in Chennai
ReplyDeleteI really understand the concepts clearly..Such a wonderful post..
ReplyDeleteSoftware Testing Training in Chennai |No.1 Selenium Training Institute in Chennai | Web Designing Training Institute in Chennai
Thanks for posting this interesting and useful article.keep updating such a valuable information with us..
ReplyDeletePCB Training Center in Chennai | PCB Training Institute in Chennai | Embedded Training Institute in Chennai | Robotics Training Center in Chennai
Thanks for this blog. provided great information. All the details are explained clearly.
ReplyDeleteRobotics Training Center in Chennai | Robotics Project Center in Chennai | Robotics Training in Velachery
Very informative and innovative blog to sharing..keep sharing your post..
ReplyDeleteNo.1 IOS Training Institute in Chennai | Best Android Training Institute in Chennai | Java Training Institute in Chennai
• Do you mind if I quote a couple of your posts as long as I provide credit and sources back to your blog? My blog is in the same niche as yours, and my users would benefit from some of the information you provide here. Please let me know if this ok with you. Thank you."Devops Training in Chennai"
ReplyDeleteThanks for posting this useful and informative article with impressive content..keep updating..Diploma Project Center in Chennai | Diploma Project Center in Velachery
ReplyDeleteI really understand the concepts clearly..Thanks for giving such a nice post..
ReplyDeleteBest Real Time Project Center in Chennai | Real Time Project Center in Velachery
I really understand the concepts clearly..Thanks for giving such a nice post..Six Sigma Certification Training in Chennai | Six Sigma Exam Center in Velachery
ReplyDeleteI'm so happy read with your blog..Keep sharing..
ReplyDeleteSoftware Testing Training in Chennai |No.1 Selenium Training Institute in Chennai | Web Designing Training Institute in Chennai
Very interesting content which helps me to get the in depth knowledge about the technology. To know more details about the course visit this website.Final Year Project Center in Chennai | Best Project Center in Chennai | No.1 Final Year Project Center in Chennai | Best Project Center in Velachery
ReplyDeleteI simply wanted to thank you so much again. I am not sure the things that I might have gone through without the type of hints revealed by you regarding that situation
ReplyDeletepython training in marathahalli
I am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly.
ReplyDeleteRobotics Training Center in Chennai | Robotics Project Center in Velachery
Good post and I like it very much. By the way, anybody try this increase app downloads? I do not how to use.
ReplyDeleteInformative post..Thank you for updating...DotNet Project Center in Chennai | DotNet Project Center in Velachery
ReplyDeleteHi, am a big follower of your blog. I am really happy to found such a helpful and fascinating post that is written in well manner.
ReplyDeletemobile website builder
You have done a great job, really the salesforce interview question was useful to us, Thank you for sharing such a useful information.. Keep updating such a nice blog..Automation Anywhere Training in Chennai | RPA Training Institute in Chennai | UI Path Training Institute in Chennai | Blue Prism Training Institute in Chennai
ReplyDeleteVery Useful information that i have found. don't stop and Please keep updating us..... ThanksJava Training in Chennai | Web Designing Training Institute in Chennai | DotNet Training Institute in Chennai
ReplyDeleteI have a nice posting helpful very awesome article great blog please
ReplyDeleteinformation help you.
Best Adobe Photoshop Training Institute in Chennai | No.1 CorelDraw Training Institute in Chennai
I am really happy to read your blog..Thanks for posting this informative post..
ReplyDeletePower System Project Center in Chennai | Power System Projects in Velachery
Nice post.. Really you are done a wonderful job. Thanks for sharing such wonderful information with us. Please keep on updating..
ReplyDeleteBest Microsoft Azure Training Institute in Chennai | Best Microsoft Azure Training Institute in Velachery
Nice post.. Really you are done a wonderful job. Thanks for sharing such wonderful information with us. Please keep on updating..
ReplyDeleteBest VMware Training Institute in Chennai | Best VMware Training Institute in Velachery
Thank you very much for sharing this awesome post with us..VLSI Project Center in Chennai | VLSI Project Center in Velachery
ReplyDeleteI feel really happy to have seen your webpage and look forward to so
ReplyDeletemany more entertaining times reading here. Thanks once more for all
the details.
white label website builder
I strongly believe that there will be good opportunities for those who looked at your site.
ReplyDeleteBest Online Software Training Institute | Salesforce.com Integration Training
very interesting , good job and thanks for sharing such a good blog.
ReplyDeleteCorelDraw Training Institute in Chennai | CorelDraw Training Institute in Velachery
Congrats for your work. Thanks a lot for providing this with us. Keep on updating this with us regularly..
ReplyDeleteISTQB Certifications Exam institute in Chennai | QA Testing in Sholinganallur
Thank you so much for giving such a nice post.. keep sharing your post.
ReplyDeleteHardware and Networking Certifications Exam Center in Chennai | No.1 Hardware Training in Adambakkam
Nice post.Thanks for sharing this post .I really appreciate the kind of topics you post here.
ReplyDeleteAndroid Certifications Center in Chennai | No.1 Android Exam in Saidapet
Nice information about this valuable article,which helps to learn more....
ReplyDeleteReal Time Project Center in Chennai | Real Time Project in Kanchipuram
Very Clear Explanation. Thank you to share this
ReplyDeleteRegards,
Best Devops Training in Chennai | Best Devops Training Institute in Chennai
Nice tutorial. Thanks for sharing the valuable information. it’s really helpful. Who want to learn this blog most helpful.
ReplyDeleteDevops Training in Chennai | Devops Training Institute in Chennai
very nice blogs!!! i have to learning for lot of information for this sites...Sharing for wonderful information. Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing
ReplyDeleteBest AWS Training Academy in Kanchipuram
Really very great information to be provided and the All points discussed were worth reading and i’ll surely work with them all one by one.
ReplyDeleteBest C and C++ Programming Training Academy in Kanchipuram
Awesome post. Really you are shared very informative concept... Thank you for sharing. Keep on updating...
ReplyDeleteBest Graphics Designing Training Academy in Kanchipuram
Wonderful post. Thank you for updating such an informative content.
ReplyDeleteBest Python Training Academy in Kanchipuram
Thanks for this greatful information. all this information is very important to all the users and can be used good at all this process
ReplyDeleteBest Tally ERP 9.0 Training Academy in Kanchipuram
really you have posted an informative blog. it will be really helpful to many peoples. thank you for sharing this blog. so keep on sharing such kind of useful blogs.
ReplyDeleteBest TALLY ERP 9.0 Training Academy In Kanchipuram
Your article was so impressive and informative. Its very interesting to read. Thanks for sharing,
ReplyDeleteBest web design Training Institute in Kanchipuram
thank you for such a great article with us. hope it will be much useful for us. please keep on updating..
ReplyDeleteBest software testing Training Institute in Kanchipuram
Thanks for posting this article.
ReplyDeleteUnicsol offers Best full stack developer course in hyderabad get trained by 10+years of experienced faculty and get placed as full stack developer.
I think this is an informative post and it is very useful and knowledgeable. I really enjoyed reading this post. thank you!
ReplyDeleteBest Python Course Training Institute in kanchipuram|
The best thing is that your blog really informative thanks for your great information
ReplyDeleteBest tally erp 9 Course Training Institute in kanchipuram|
Awesome Blog with informative concept. Really I feel happy to see this useful blog, Thanks for sharing such a nice blog...
ReplyDeleteBest Linux Certification Course Training Institute in kanchipuram|
This is excellent information. It is amazing and wonderful to visit your site.Thanks for sharing this information,this is useful to me...
ReplyDeleteBest UIPath Robotic Process Automation Course Training Institute in kanchipuram|
Excellent post. I have read your blog it's very interesting and informative. Keep sharing.
ReplyDeleteBest JAVA / J2EE / J2ME Course Training Institute in kanchipuram|
Nice post.. Really you are done a wonderful job. Thanks for sharing such wonderful information with us. Please keep on updating...
ReplyDeleteBest C & C++ Course Training Institute in kanchipuram|
Very nice post here and thanks for it .I always like and such a super blog of these post.Excellent and very cool idea and great blog of different kinds of the valuable information's.
ReplyDeleteBest Tally Erp 9.0 Course Training Institute in kanchipuram|
I feel satisfied with your blog, you have been delivering useful & unique information to our vision even you have explained the concept as deep clean without having any uncertainty, keep blogging.
ReplyDeleteNo:1 Tally Training Academy in kanchipuram
This is really impressive post, I am inspired with your post, do post more blogs like this, I am waiting for your blogs.
ReplyDeleteBest Tally Erp 9.0 Course Training Institute in kanchipuram|
Interesting post!!! Thanks for posting such a useful information. I wish to read your upcoming post to enhance my skill set and keep blogging.
ReplyDeleteBest Tally Erp 9.0 Course Training Institute in kanchipuram|
This is excellent information. It is amazing and wonderful to visit your
ReplyDeletesite.Thanks for sharing this information, this is useful to me.
Best Selenium
Automation Course Training Institute in kanchipuram|
Very good and informative information. Thanks for sharing such nice blog, keep on updating such good post.
ReplyDeleteBest Software Testing Course Training Institute in kanchipuram|
I have read your blog. Good and more information useful for me, Thanks for sharing this information keep it up....
ReplyDeleteBest Dot Net Course Training Institute in kanchipuram|
Excellent post!!! The future of cloud computing is on positive side. With most of the companies integrate Salesforce to power their business; there is massive demand for Salesforce developers and administrators across the world.
ReplyDeleteNo:1 BBA Project Center in kanchipuram
Really it was an awesome blog...very interesting to read..You have provided an nice information....Thanks for sharing..
ReplyDeleteBest Hardware & Networking Course Training Institute in kanchipuram|
Thanks for the useful information of software testing courses, give more updates on software testing development, First time I visit your blog really nice, I bookmark your blog here after a daily visit. Learn
ReplyDeleteNo:1
Java J2EE Training Academy in kanchipuram
Nice blog. Thank you for sharing. The information you shared is very effective for learners I have got some important suggestions from it.
ReplyDeleteBest PCB (Printed Circuit Board) Course Training Institute in kanchipuram|
Wow Very Nice Information Thanks For Sharing It.keep update…
ReplyDeleteBest EEE Project Centre Training Institute in kanchipuram|
Thanks for sharing this valuable information to our vision. You have posted a trust worthy blog keep sharing.
ReplyDeleteBest PCB (Printed Circuit Board) Course Training Institute in kanchipuram|
Nice blog. Thank you for sharing. The information you shared is very effective for learners I have got some important suggestions from it.
ReplyDeleteNo:1 Hardware and Networking Training Academy in Kanchipuram
I love reading and following your post as I find them extremely informative and interesting.
ReplyDeleteBest AWS (Advanced Amazon Web Services) Course Training Institute in kanchipuram|
Awesome post. Really you are shared very informative information... Thank you for sharing. Keep on updating...
ReplyDeleteBest AWS (Advanced Amazon Web Services) Course Training Institute in kanchipuram|
Nice blog. Thank you for sharing. The information you shared is very effective for
ReplyDeletelearners I have got some important suggestions from it.
No:1 Azure Training Academy in
Kanchipuram
Great post..Its very useful for me to understand the information..Keep on blogging..
ReplyDeleteBest Software Testing Course Training Institute in kanchipuram|
Nice..You have clearly explained about the conept..Its very useful for me to undertand..Keep on sharing..
ReplyDeleteNo:1 Azure Training Academy in Kanchipuram
I found some useful information in your blog, it was awesome to read, thanks for sharing this great information to my vision, keep sharing.
ReplyDeleteBest Graphic Designing Course Training Institute in kanchipuram|
This comment has been removed by the author.
ReplyDeleteMarvelous and fascinating information.Thanks for this greatful blog. keep your blog updated.
ReplyDeleteBest Hardware & Networking Course Training Institute in kanchipuram|
Thanks a lot for offering this unique post with us. I really enjoyed by reading your blog post.keep sharing.
ReplyDeleteBest Python Course Training Institute in kanchipuram|
This is really awesome. Full of knowledge and latest information.Thanks for sharing.
ReplyDeleteBest JAVA / J2EE / J2ME Course Training Institute in kanchipuram|
great and nice blog thanks sharing..I just want to say that all the information you have given here is awesome...Thank you very much for this one.
ReplyDeleteNo:1 Best EEE Project Center in kanchipuram|
really you have posted an informative blog. it will be really helpful to many peoples. thank you for sharing this blog. so keep on sharing such kind of useful blogs.
ReplyDeleteNo:1 Best NS2 (Network Simulator) Project Center in kanchipuram|
The provided information’s are very useful to me.Thanks for sharing.Keep updating your blog.
ReplyDeleteNo:1 Networking project Centre in kanchipuram
very usefull informatation.and iam expecting more posts like this please keep updating us....
ReplyDeleteNo:1 Best Android Project Center in kanchipuram|
Thanks for this greatful information. all this information is very important to all the users and can be used good at all this process.please keep on updating..
ReplyDeleteNo:1 Best ECE ( Electronics & Communications Engineering) Project Center in kanchipuram|
You post explain everything in detail and it was very interesting to read.Thank you for Sharing.
ReplyDeleteNo:1 Best Dotnet Project Center in kanchipuram|
After I see your blog it was so impressive and informative content. thanks for sharing such a lovely blog.
ReplyDeleteNo:1 Best Software Testing Training Center in kanchipuram|
Good and more informative Blog. This content was easily understand and unique. Thanks for sharing this post.
ReplyDeleteNo:1
Tally Training Center in kanchipuram
After reading your blog, I was quite interested to learn more about this information. Thanks for sharing.
ReplyDeleteNo:1 Best PGDCA Training Center in kanchipuram|
Great post very useful info thanks for this post ....
ReplyDeleteAws training chennai | AWS course in chennai
Rpa training in chennai | RPA training course chennai
sas training in chennai | sas training class in chennai
Wow it is really wonderful and awesome thus it is very much useful for me to understand many information and helped me a lot. it is really explainable very well and i got more information from your blog.
ReplyDeleteNo:1 Best Tally Training Center in kanchipuram|
this is really too useful and have more ideas from yours. keep sharing many
ReplyDeletetechniques.
No:1 CCNA training Center in Kanchipuram
You post explain everything in detail and it was very interesting to read.Thank you for Sharing.
ReplyDeleteNo:1 Best Tally Training Center in kanchipuram|
The best thing is that your blog really informative thanks for your great information!No:1 ISTQB Exam Center in Chennai|
ReplyDeleteThis is excellent information. It is amazing and wonderful to visit your site.Thanks for sharng this information,this is useful to me..No: 1 ITB Exam Center in Chennai|
ReplyDeleteYour blog is awesome..You have clearly explained about it ...Its very useful for me to know about new things..Keep on blogging…No: 1 ECE Project Center in Chennai|
ReplyDeleteI just see the post i am so happy the post of information's.So I have really enjoyed and reading your blogs for these posts. No: 1 BCS Exam Center in Chennai
ReplyDelete
ReplyDeleteThese provided information was really so nice,thanks for giving that post and the more skills to develop after refer that post. Your blog really impressed for me,because of all information so nice.No: 1 VLSI Project Center in Chennai|
I am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly.No: 1 ITIL Exam Center in Chennai|
ReplyDeleteThis blog is informative.It helps me to gain good knowledge.It helps to understand the concept easily. please update this kind of information…No: 1 IT Project Center in Chennai|
ReplyDeleteI am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly.No: 1 PMP Exam Center in Chennai|
ReplyDeleteIt is really a great and useful piece of information. I am glad that you shared this helpful info with us. Please keep us up to date like this. Thank you for sharing.
ReplyDeleteIT Project Center in Chennai
hi welcome to this blog. really you have post an informative blog. it will be really helpful to many peoples. thank you for sharing this blog.No: 1 Final Year Project Center in Chennai|
ReplyDeleteI found some useful information in your blog, it was awesome to read, thanks for sharing this great content to my vision, keep sharing.
ReplyDeleteBest Python Project Center in Chennai
Good one, it is very useful for me to learn and understand, thanks for sharing your information and ideas.. keep rocks..No: 1 AWS Exam Center in Chennai|
ReplyDeleteThank you so much as you have been willing to sharing your information with us. And not only that we will spend a lot of time other blog but your blog is so informative and compare to that your blog is unique.No: 1 EEE Project Center in Chennai|
ReplyDeleteI am really happy with your blog because your blog is very unique and powerful for new reader.No: 1 Microsoft Exam Center in Chennai|
ReplyDeleteIt is really a great and useful piece of information. I am glad that you shared this helpful info with us. Please keep us up to date like this. Thank you for sharing.
ReplyDeleteNO:1 Dotnet Project Center in Chennai
Thanks for sharing such a nice blog. Its so informative concept and easy to understand also, kindly keep updating such a nice blog..No: 1 Engineering Project Center in Chennai|
ReplyDelete
ReplyDeleteI am reading your post from the beginning, it was so interesting to read & I feel thanks to you for posting such a good blog, keep updates regularly. No: 1 AZURE Exam Center in Chennai|
I have completely read your post and the content iscrisp and clear.Thank you for
ReplyDeleteposting such aninformative article, I have decided to follow your blog so that I
canmyself updated.
No:1 AWS Exam Center in Chennai
Really an amazing post..! By reading your blog post i gained more information.No: 1 CCNA Exam Center in Chennai|
ReplyDeleteI have read your blog its very attractive and impressive. I like it your blog.No: 1 Python Certification in Chennai|
ReplyDeleteThis information is impressive..I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic
ReplyDeleteAWS Certification in Chennai
I have completely read your post and the content iscrisp and clear.Thank you for posting such an informative Blog, I have decided to follow your blog so that I canmyself updated.
ReplyDeleteBest CCNA Certification in Chennai
Thanks for posting this useful content, Good to know about new things here, Keep updating your blog...No: 1 Blue Prium Certification in Chennai|
ReplyDeleteThis information is impressive..I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic
ReplyDeleteAWS Certification in Chennai
Hi, am a big follower of your blog. The best thing is that your blog really informative thanks for your great information!No: 1 NS 2 Project Center in Chennai|
ReplyDeleteHello , Really awesome blog. Your blog is really useful for me. Thanks for sharing this informative blog. Keep updating your blog.No: 1 JAVA Application Center in Chennai|
ReplyDeleteThis information is impressive..I am inspired with your post writing style & how continuously you describe this topic. After reading your post, thanks for taking the time to discuss this, I feel happy about it and I love learning more about this topic
ReplyDeleteAWS Certification in Chennai
Great and useful article.Thanks for taking time to share this post
ReplyDeleteAndroid Project Center in Chennai
These provided information was really so nice,thanks for giving that post and the more skills to develop after refer that post. Your bolg really impressed for me,because of all information so nice.No: 1 NS 2 Project Center in Chennai|
ReplyDeleteI found a lot of interesting information here. A really good post. keep updating.No: 1 MBA Project Center in Chennai|
ReplyDeleteI have read your blog. Good and more informationuseful for me, Thanks for sharing
ReplyDeletethis information keep it up....
No.1 Python Project Center in Chennai
I am very happy after find this post and really helpful. Thanks for sharing this Informative content. Well explained. Got to learn new things from your Blog. your site really helps me for searching the new and great stuff.
ReplyDeleteECE Project Center in Chennai
Quite Interesting post!!! Thanks for posting such a useful post. I wish to read your upcoming post to enhance my skill set, keep blogging.No: 1 BBA Project Center in Chennai|
ReplyDelete