上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页
摘要: import java.util.ArrayList; import java.util.List; public class TestArray { public static void main(String[] args) { List list=new ArrayList(); list.add(new Person("华佗",40)); list.add(new Person(... 阅读全文
posted @ 2017-05-04 16:33 苏轼的红烧肉 阅读(98) 评论(0) 推荐(0) 编辑
摘要: /** * @author Administrator * */ /** * @author Administrator * */ public class Person { String name; int age; public String getName() { return name; } public void setName(String name) { ... 阅读全文
posted @ 2017-05-04 15:59 苏轼的红烧肉 阅读(208) 评论(0) 推荐(0) 编辑
摘要: import java.util.ArrayList; import java.util.List; public class TestArrayList { public static void main(String[] args) { //创建一个动态数组 List list=new ArrayList(); list.add("刘备"); ... 阅读全文
posted @ 2017-05-04 15:58 苏轼的红烧肉 阅读(325) 评论(0) 推荐(0) 编辑
摘要: import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Calendar; import java.util.Date; import java.util.Scanner; public class shengri { public static void main(Stri... 阅读全文
posted @ 2017-05-04 15:28 苏轼的红烧肉 阅读(310) 评论(0) 推荐(0) 编辑
摘要: import java.text.ParseException; import java.text.SimpleDateFormat; import java.util.Date; import java.util.Scanner; public class Simpledate { public static void main(String[] args){ Scanne... 阅读全文
posted @ 2017-05-04 15:27 苏轼的红烧肉 阅读(265) 评论(0) 推荐(0) 编辑
摘要: import java.util.Calendar; import java.util.Date; public class shijian { public static void main(String[] args) { Calendar c=Calendar.getInstance(); //修改,获取,增加 //System.out.println(c.get(Calendar... 阅读全文
posted @ 2017-05-04 13:47 苏轼的红烧肉 阅读(118) 评论(0) 推荐(0) 编辑
摘要: public class Test1 { public static void main(String[] args) { getmaxsub("abcderfjkasdgk", "w"); } public static String getmaxsub(String a,String b){ if(a.length()0;i--) { ... 阅读全文
posted @ 2017-05-03 16:34 苏轼的红烧肉 阅读(192) 评论(0) 推荐(0) 编辑
摘要: public class Test2 { public static void main(String[] args) { String s="abkkcdkkefkkskk"; int sum=0; while(s.contains("kk")){ sum++; s=s.replaceFirst("kk", " "); ... 阅读全文
posted @ 2017-05-03 15:16 苏轼的红烧肉 阅读(709) 评论(0) 推荐(0) 编辑
摘要: public class Test7 { public static void main(String[] args) { String a="aba"; String b="baa"; while(a.length()!=0 && b.length()!=0 && a.length()==b.length()){ Str... 阅读全文
posted @ 2017-05-03 14:46 苏轼的红烧肉 阅读(449) 评论(0) 推荐(0) 编辑
摘要: 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 苏轼的红烧肉 阅读(135) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 16 下一页