package m.j.j; import sun.security.x509.InvalidityDateExtension; import java.util.Scanner; public class adadja { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int i; String[] a = new String[1000]; a = new String[]{scan.nextLine()}; for (i = 0; i < a.length; i++) { if (a[i] >= '0' && a[i] <= '9') { System.out.println(a); } } }}
字符串中的数字
![](https://img-home.csdnimg.cn/images/20240711042549.png)