I have two arrays in c# bascially i am creating a function to check either my string contains at least one lowercase one uper case and one digit so i take a string and then convert it to lowercase and uppercase and then covert them to array and then comparing to check if atleast one item like one upercase one lowercase one digit exists then success message shown
The problem is here
if i input as a main string as "acg123"
and my uppercase string would contain "ACG123" now for the first three characters it works fine like a and A are different and C and c are differnet but when it comes to number it makes the condition true as in both of them we have 123, so how can i compare just characters from the string array instead of any number
Tapan PatelRank #614 · 3.9K reputationPosted Sep 21, 2017, 12:51 PM EDT
Rahul KaushikRank #2,112 · 676 reputationPosted Sep 20, 2017, 8:14 PM EDT
Tapan PatelRank #614 · 3.9K reputationPosted Sep 21, 2017, 8:15 AM EDT
Mark TaborRank #914 · 2.3K reputationPosted Sep 21, 2017, 12:19 PM EDT
Mark TaborRank #914 · 2.3K reputationPosted Sep 21, 2017, 12:22 PM EDT
Mark TaborRank #914 · 2.3K reputationPosted Sep 21, 2017, 9:31 PM EDT
Tapan PatelRank #614 · 3.9K reputationPosted Sep 22, 2017, 4:46 AM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts