摘要:
1 package 国际化; 2 3 import java.util.ResourceBundle; 4 5 public class TestResource { 6 public static void main(String[] args) { 7 ResourceBundle rb=Res 阅读全文
posted @ 2017-04-08 17:46
xiongjiawei
阅读(529)
评论(0)
推荐(0)
摘要:
实例化对象的3种方式:new、clone、反射 阅读全文
posted @ 2017-04-08 16:33
xiongjiawei
阅读(375)
评论(0)
推荐(0)
摘要:
1 package 反射; 2 interface Product{ 3 public void produce(); 4 } 5 class socks implements Product{ 6 @Override 7 public void produce() { 8 System.out.p 阅读全文
posted @ 2017-04-08 16:05
xiongjiawei
阅读(229)
评论(0)
推荐(0)
摘要:
1 package 反射; 2 3 public class Test反射 { 4 public static void main(String[] args) { 5 System.out.println(Runtime.getRuntime().getClass());//class java. 阅读全文
posted @ 2017-04-08 15:01
xiongjiawei
阅读(189)
评论(0)
推荐(0)
摘要:
1 package 正则; 2 3 import java.util.regex.Matcher; 4 import java.util.regex.Pattern; 5 6 public class Test_regex { 7 public static void main(String[] a 阅读全文
posted @ 2017-04-08 14:47
xiongjiawei
阅读(739)
评论(0)
推荐(0)
摘要:
1 package 正则; 2 3 public class TestIsNum { 4 public static void main(String[] args) { 5 String s1="abc"; 6 String s2="98765234567800987654321123456789 阅读全文
posted @ 2017-04-08 12:58
xiongjiawei
阅读(2786)
评论(0)
推荐(0)

浙公网安备 33010602011771号