首页 > 人工智能 > 正文

java验证手机号码,手机qq2010java触屏版怎么不能输QQ号码---

2020-04-13 08:17:38  来源:http://www.capsicumpm.com  编辑:admin

java 正则表达式验证电话号码 11位数字,前2位是13开头 或15 开头 或18 开头

"^1[358]\\d{9}$"(不带引号)这样就可以了

JAVA发送手机验证码,发送邮箱验证码的问题。

你好!!这个功能需要找相关短信代理商······他们会给你相关的开发接口,有发短信的、收短信的、查询短信的等等。

Java客户端调用Webservice接口实现获取手机验证码 求代码

只能提供楼主思路,一切还是要看楼主的。 1、设计传输接口入参,返回值(最好json);wsdl 2、报文加密 3、并发

求验证身份证号码的java程序!

import java.io.*;public class ID{ private String temp ; private final char[] cc = {1,0,'X',9,8,7,6,5,4,3,2}; public String getID(){ try{ System.out.println("Input ID,please [input]"); BufferedReader br = new BufferedReader(new InputStreamReader( System.in)); temp = br.readLine(); } catch(IOException e){} System.out.println(" make sure of it:"+temp); return temp; } public void checkit(){ String temp1 = temp; if(temp1.length() == 18){ System.out.println(temp1.substring(6,10)+"year "+ temp1.substring(10,12)+"month "+ temp1.substring(12,14)+"day "+ "sex: "+checkSex(temp1.charAt(16)) ); } else if(temp1.length() == 15){ String id = makeit(temp1); System.out.println(id.substring(6,10)+"year "+ id.substring(10,12)+"month "+ id.subSequence(12,14)+"day "+ "sex: "+ checkSex(id.charAt(16))); } else System.out.println("your input is Error,please input again!"); } public String checkSex(char c){ if(c%2 == 0) return "girl"; else return "boy"; } public int LastNum(String temp3){ int index = 0; for(int i = 16;i>= 0;i--){ double wi = Math.pow(2,(i-1)) %11; int ai = (int)temp3.charAt(i); index += ai*wi; } index = index % 11; index = (int)this.cc[index]; return index; } public String makeit(String temp2){ StringBuffer temp3 = new StringBuffer(temp2); temp3.insert(6,"19"); temp3.insert(17,LastNum(temp3.toString())); return temp3.toString(); } public static void main(String[] args){ ID id = new ID(); id.temp = id.getID(); id.checkit(); } }import java.io.*;public class ID{ private String temp ; private final char[] cc = {1,0,'X',9,8,7,6,5,4,3,2}; public String getID(){ try{ System.out.println("Input ID,please [input]"); BufferedReader br = new BufferedReader(new InputStreamReader( System.in)); temp = br.readLine(); } catch(IOException e){} System.out.println(" make sure of it:"+temp); return temp; } public void checkit(){ String temp1 = temp; if(temp1.length() == 18){ System.out.println(temp1.substring(6,10)+"year "+ temp1.substring(10,12)+"month "+ temp1.substring(12,14)+"day "+ "sex: "+checkSex(temp1.charAt(16)) ); } else if(temp1.length() == 15){ String id = makeit(temp1); System.out.println(id.substring(6,10)+"year "+ id.substring(10,12)+"month "+ id.subSequence(12,14)+"day "+ "sex: "+ checkSex(id.charAt(16))); } else System.out.println("your input is Error,please input again!"); } public String checkSex(char c){ if(c%2 == 0) return "girl"; else return "boy"; } public int LastNum(String temp3){ int index = 0; for(int i = 16;i>= 0;i--){ double wi = Math.pow(2,(i-1)) %11; int ai = (int)temp3.charAt(i); index += ai*wi; } index = index % 11; index = (int)this.cc[index]; return index; } public String makeit(String temp2){ StringBuffer temp3 = new StringBuffer(temp2); temp3.insert(6,"19"); temp3.insert(17,LastNum(temp3.toString())); return temp3.toString(); } public static void main(String[] args){ ID id = new ID(); id.temp = id.getID(); id.checkit(); } }

提问 ke手机模拟器玩手机网游怎么多开啊 我多开一个就会显示 被相同IP踢出游戏 求详解!我玩的是java的忠

模拟器修改IP的方法第一步:搜索:618IP代理。下载手机版第二步:免费注册账号第三步:连接你要修改的目的节点第四步:打开浏览器查询IP是你修改之后的IP就可以解决你的问题了。