How to check if a string contains all given symbols in java?

后端 未结 0 810
无人共我
无人共我 2020-12-07 05:51

e.g I have a string "$tring" and I want to check wether this string consists only of an alphabetical symbols or $, how can do this? Something like

相关标签:
回答
  • 消灭零回复
提交回复
热议问题