一叶梧桐

随笔分类 -  Java

JAVA判断当前时间是上午am还是下午pm
摘要://结果为“0”是上午结果为“1”是下午publicclassGregorianTest{publicstaticvoidmain(Stringargs[]){GregorianCalendarca=newGregorianCalendar();System.out.println(ca.get(G... 阅读全文

posted @ 2014-08-18 15:32 一叶梧桐 阅读(3842) 评论(0) 推荐(0)

java字节数组和16进制之间的转换
摘要:/* * To change this template, choose Tools | Templates * and open the template in the editor. */ package test.util;/** * * @author Administrator */ pu... 阅读全文

posted @ 2014-06-19 17:12 一叶梧桐 阅读(320) 评论(0) 推荐(0)

16进制转换字节数组工具类
摘要:public class StringUtil { public static String str = "696d706f7274"; public static void main(String[] args) { System.out.println(new String(getBytes(... 阅读全文

posted @ 2014-06-19 16:55 一叶梧桐 阅读(431) 评论(0) 推荐(0)