if i have the following array:
and i then want to check if a string contains any of these numbers, could i do something like this:Code:private string[] digits = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9" };
Code:String test ="1+2+3"; if(test equals any of the digits in 'digits') { // Do stuff }




Reply With Quote