能力值:
( LV10,RANK:170 )
|
-
-
2 楼
这样写就可以了:
package strdemo;
public class cppdemo {
public String demo = "FD4FD5FD9ab158ced654defdad1285";
public static void main(String[] args) {
cppdemo cpp = new cppdemo() ;
char []ch = cpp.demo.toCharArray() ; //转换成字符数组
for (int i = 0; i<ch.length ;i++){
if (ch[i] >='0' && ch[i] <='9'){
System.out.println(ch[i]) ;
}
}
}
}
|
|
|