上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 24 下一页
摘要: 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 阅读(516) 评论(0) 推荐(0) 编辑
摘要: 实例化对象的3种方式:new、clone、反射 阅读全文
posted @ 2017-04-08 16:33 xiongjiawei 阅读(367) 评论(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 阅读(213) 评论(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 阅读(176) 评论(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 阅读(725) 评论(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 阅读(2778) 评论(0) 推荐(0) 编辑
摘要: 1 package 对象比较排序; 2 3 import java.util.Arrays; 4 5 class A implements Comparable<A>{ 6 private String name; 7 private int age; 8 public A(String name, 阅读全文
posted @ 2017-04-07 23:58 xiongjiawei 阅读(554) 评论(0) 推荐(0) 编辑
摘要: 1 package Arrays类; 2 3 import java.util.Arrays; 4 5 public class TestArrays { 6 public static void main(String[] args) { 7 int[] a={1,9,3,5,7,8,2,6,0, 阅读全文
posted @ 2017-04-07 23:19 xiongjiawei 阅读(384) 评论(0) 推荐(0) 编辑
摘要: 1 package 日期日历类; 2 3 import java.text.ParseException; 4 import java.text.SimpleDateFormat; 5 import java.util.Date; 6 7 public class TestDate { 8 publ 阅读全文
posted @ 2017-04-07 22:25 xiongjiawei 阅读(751) 评论(0) 推荐(0) 编辑
摘要: 1 public class TestDate { 2 public static void main(String[] args) { 3 System.out.println(new java.util.Date()); 4 } 5 } 运行结果:Fri Apr 07 21:56:24 CST 阅读全文
posted @ 2017-04-07 21:58 xiongjiawei 阅读(1855) 评论(0) 推荐(0) 编辑
上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 24 下一页