Home:ALL Converter>How to compare the each word in input with the list and return bool

How to compare the each word in input with the list and return bool

Ask Time:2021-06-21T16:31:20         Author:

Json Formatter


My location list has these values:

Saudi    
Arabia    
Tokyo     
India    
Germany

My question when i give input as Saudi Arabia it should take each word in input and compare with the location list if any one the word is present in the list it should give true and that too only using equals method. Please help.

Author:,eproduced under the CC 4.0 BY-SA copyright license with a link to the original source and this disclaimer.
Link to original article:https://stackoverflow.com/questions/68064792/how-to-compare-the-each-word-in-input-with-the-list-and-return-bool
yy