摘要:        
public class TimeTwo { public static void main(String[] args) throws ParseException{ String s = "2018-08-12 12:02:23"; SimpleDateFormat g = new Simple    阅读全文
posted @ 2018-05-31 17:14
背起全世界の蜗牛
阅读(436)
评论(0)
推荐(0)
            
        
        
摘要:        
public class TimeTwo { public static void main(String[] args) throws ParseException{ String s = "2018-08-12 12:02:23"; //使用SimpleDateFormat实现字符串和日期的相互    阅读全文
posted @ 2018-05-31 17:10
背起全世界の蜗牛
阅读(1922)
评论(0)
推荐(0)
            
        
        
摘要:        
public class TimeThree { public static void main(String[] args) { SimpleDateFormat d = new SimpleDateFormat("yyyy-MM-dd E HH:mm:ss"); Date date = new     阅读全文
posted @ 2018-05-31 17:08
背起全世界の蜗牛
阅读(2594)
评论(0)
推荐(0)
            
        
        
摘要:        
public class TimeFour { public static void main(String[] args) throws ParseException{ TimeFour four = new TimeFour(); four.test(); } public void test(    阅读全文
posted @ 2018-05-31 17:07
背起全世界の蜗牛
阅读(2946)
评论(0)
推荐(0)
            
        
        
摘要:        
public class Time { public static void main(String[] args) { Date t = new Date(); DateFormat ti = new SimpleDateFormat("yyyy年MM月dd日 hh:mm:ss"); String    阅读全文
posted @ 2018-05-31 17:00
背起全世界の蜗牛
阅读(1029)
评论(0)
推荐(0)
            
        
        
摘要:        
public class A { public static void main(String[] args) { //定义的字符串 String s = "Hello World";// 通过length方法获取字符串长度 for (int i = 0;i < s.length();i++){ /    阅读全文
posted @ 2018-05-31 16:58
背起全世界の蜗牛
阅读(50392)
评论(0)
推荐(0)
            
        
        
摘要:        
public class Test { //要进行截取操作的字符串 static String ss; //截取的字符串的字节数 static int n; public static void main(String[] args) { System.out.println("请输入字符串:");    阅读全文
posted @ 2018-05-31 16:47
背起全世界の蜗牛
阅读(1060)
评论(0)
推荐(0)
            
        
        
摘要:        
public class Da { public static void main(String[] args) { String s = "hello_*java_*world"; System.out.println("转化前:"+s); String[] strs = s.split("_\\    阅读全文
posted @ 2018-05-31 15:48
背起全世界の蜗牛
阅读(2238)
评论(0)
推荐(0)
            
        
        
摘要:        
public class Regex1 { public static void main(String[] args) { String s = "神秘的海洋出现了一只#话题#海怪阿拉斯加#热门话题#和一艘很诡异的破船\n"; System.out.println("例子:"+s); Patter    阅读全文
posted @ 2018-05-31 15:36
背起全世界の蜗牛
阅读(1633)
评论(0)
推荐(0)
            
        
        
摘要:        
public class PaiXu1 { public static void main(String[] args) { int[] s = {345,879,456,870,221,902,148,234,478}; System.out.println("排序之前:"); System.ou    阅读全文
posted @ 2018-05-31 15:25
背起全世界の蜗牛
阅读(693)
评论(0)
推荐(0)
                    
                

浙公网安备 33010602011771号