【发布时间】:2022-01-22 19:39:23
【问题描述】:
可能重复:
How to check that the string contains the number format in Java?
假设我有一个格式如下的字符串:
string1 = "1. Stack Overflow 2. Google 3. Reddit"
如何找出数字之间的子串?
【问题讨论】:
-
-1 表示完全没有努力。
-
@MattBall 我支持。
-
有些人不知道寻求帮助的正确方式,有些人对此怀有敌意。这两种方法同样无知。