我们先创建一个java包 包下面创建两个类
customException 线程类 参考代码如下
public class customException implements Runnable {public void run () {for(int i 0;i < 100;i) {System.out.println("第" (i 1) "次输出");}}
}这里 我们是通过…
直接通过正则就会很准确
let data 1.5;
let rep/[\.]/;
console.log(rep.test(data));当没有小数点
let data 33;
let rep/[\.]/;
console.log(rep.test(data));因为是正则 所以 就算是字符串也一样有效
let data "3.3";
let rep/[\.]/;
console.log(rep.test(…