2018年5月31日
摘要: public class D { public static void main(String[] args) { String b = "Hello Java World"; System.out.println("原字符串:"+b); /*把字符串转化为数组形式,并用正则表达式进行分割*/ St 阅读全文
posted @ 2018-05-31 11:10 背起全世界の蜗牛 阅读(14868) 评论(0) 推荐(1) 编辑
摘要: public class Countdown4 { private static long day = 0; private static long hour = 0; private static long minute = 0; private static long second = 0; p 阅读全文
posted @ 2018-05-31 10:39 背起全世界の蜗牛 阅读(4616) 评论(0) 推荐(0) 编辑
摘要: public class Countdown3 { private int lin; private int curSec; public Countdown3(int lin)throws InterruptedException{ this.lin = lin; this.curSec = li 阅读全文
posted @ 2018-05-31 10:35 背起全世界の蜗牛 阅读(1431) 评论(0) 推荐(0) 编辑
摘要: public class Countdown2 { private volatile int lin; private int curSec; public Countdown2(int lin) throws InterruptedException{ /*记录倒计时时间*/ this.lin = 阅读全文
posted @ 2018-05-31 10:02 背起全世界の蜗牛 阅读(506) 评论(0) 推荐(0) 编辑
摘要: public class Countdown { private int lin; public Countdown(int lin)throws InterruptedException{ this.lin = lin; System.out.println("最后倒数时刻:" + lin + " 阅读全文
posted @ 2018-05-31 09:47 背起全世界の蜗牛 阅读(1010) 评论(0) 推荐(0) 编辑
摘要: public class Sort2 { public static void main(String[] args) { Sort2 sort = new Sort2(); System.out.println("各种排序的代码"); System.out.print("没排序前的数据 "); i 阅读全文
posted @ 2018-05-31 09:40 背起全世界の蜗牛 阅读(536) 评论(0) 推荐(0) 编辑
摘要: public class Sort { public static void arrangeSequence(char[] strArr,int i){ char temp; ArrayList<String> list = new ArrayList<>(); if(strArr == null 阅读全文
posted @ 2018-05-31 09:38 背起全世界の蜗牛 阅读(2397) 评论(0) 推荐(0) 编辑
摘要: public class List { public static void main(String[] args) { String s = "abc nnn ooo/xzsxc bs"; System.out.println("原字符串:"+s); System.out.println(); S 阅读全文
posted @ 2018-05-31 09:33 背起全世界の蜗牛 阅读(1036) 评论(0) 推荐(0) 编辑
摘要: public class List1 { public static void main(String[] args) { String s = "abc nnn ooo/xzsxc bs"; System.out.println("原字符串:"+ s + "\n"); //把s字符串变成ss数组, 阅读全文
posted @ 2018-05-31 09:27 背起全世界の蜗牛 阅读(5243) 评论(0) 推荐(0) 编辑
摘要: public class ABC { public static void main(String[] args) { new ABC().sortStringArray(); } public void sortStringArray(){ String[] a = new String[]{"O 阅读全文
posted @ 2018-05-31 09:17 背起全世界の蜗牛 阅读(3304) 评论(0) 推荐(0) 编辑