Stack Overflow Asked by Sansel on August 30, 2020
I am using Java 8. My response object will contain a string of words. My requirement is to compare if the string contains a specific word, from a list of search words.
I have created an enum to hold the search words. Currently there are only 10 words in enum. This list can grow in future. What is the best approach to maintain this list of search words? Can I continue adding the words to enum or is there any other scalable alternative to maintain the list of words.
0 Asked on January 5, 2022 by chloe-wong
1 Asked on January 5, 2022 by seddka
3 Asked on January 5, 2022 by darksoulsong
3 Asked on January 5, 2022
1 Asked on January 5, 2022 by hadi0815
1 Asked on January 5, 2022 by jack-gordon
1 Asked on January 5, 2022 by tbaracu
2 Asked on January 5, 2022 by hamstercoding
1 Asked on January 5, 2022 by simplicius
1 Asked on January 5, 2022 by e-reiner
2 Asked on January 5, 2022 by countour-integral
2 Asked on January 5, 2022 by scriobh
1 Asked on January 5, 2022 by user13990775
1 Asked on January 5, 2022 by joe-elasticsearch-handbook
1 Asked on January 5, 2022
Get help from others!
Recent Questions
Recent Answers
© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP