摘要:
public class zuihouyiti { public static void main(String[] args) { String s="01#张三#20*02#李四#30*03#王五#40"; String s1=s.replaceAll("#", " "); System.out.println(s1.replaceA... 阅读全文
posted @ 2017-05-02 21:21
苏轼的红烧肉
阅读(145)
评论(0)
推荐(0)
摘要:
public class huiwen { public static void main(String[] args) { String str = "abcba"; String b = new StringBuffer(str).reverse().toString(); if(str.equals(b)){ ... 阅读全文
posted @ 2017-05-02 21:02
苏轼的红烧肉
阅读(112)
评论(0)
推荐(0)
摘要:
import java.util.Scanner; import java.util.regex.Matcher; import java.util.regex.Pattern; public class zhengze { public static void main(String[] args) { //1.创建一个正则表达式对象 Pattern p=Pattern.c... 阅读全文
posted @ 2017-05-02 20:38
苏轼的红烧肉
阅读(121)
评论(0)
推荐(0)
摘要:
import java.util.Scanner; public class zhengze { public static void main(String[] args) { String p="[a-zA-Z]+(?=.*[0-9].*)(?=.*[_].*)\\w{7,10}"; Scanner s=new Scanner(... 阅读全文
posted @ 2017-05-02 20:18
苏轼的红烧肉
阅读(1368)
评论(0)
推荐(0)
摘要:
import java.util.Scanner; public class zhengze { public static void main(String[] args) { Scanner s=new Scanner(System.in); System.out.println("请输入一个合法的用户名"); String str=s.next(... 阅读全文
posted @ 2017-05-02 19:12
苏轼的红烧肉
阅读(139)
评论(0)
推荐(0)

浙公网安备 33010602011771号