java.util.Calendar类:日历类 Calendar类是一个抽象类,里边提供了很多操作日历字段的方法(YEAR.MONTH.DAY_OF_MONTH.HOUR ) Calendar类无法直接创建对象使用,里边有一个静态方法叫getInstance(),该方法返回了Calendar类的子类对象 static Calendar getInstance() 使用默认时区和语言环境获得一个日历 public class Demo01Calendar { public static void…
1.字符串与字节 public String(byte[] byte); 将全部字节变成字符串 public String (byte[] byte,int offset,int length) 将部分字节变成字符串 public byte[] getBytes() 将字符串变成字节 public byte[] getBytes(String charsetName) throws Excption 字符串转码操作 public class TestDemo { public static vo…