gpt4 book ai didi

java - 如何计算字符串中的特殊字符

转载 作者:太空宇宙 更新时间:2023-11-03 11:51:55 25 4
gpt4 key购买 nike

<分区>

Possible Duplicate:
String Functions how to count delimiter in string line

I have a string as str = "one$two$three$four!five@six$" now how to count Total number of "$" in that string using java code.

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com