How can I check if a single character appears in a string?

In Java is there a way to check the condition:

“Does this single character appear at all in string x”

without using a loop?

15 Answers
15

Leave a Comment