?? dateformat.java
字號:
package com.common;
import java.text.SimpleDateFormat;
import java.util.Date;
public class DateFormat {
public static String getSysTime(){
SimpleDateFormat sdf=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
return sdf.format(new Date());
}
public static void main(String[] dd){
int i=1234;
}
public static byte[] intTobyte(int _int){
byte[] _byte=new byte[4];
for(int i=0;i<_byte.length;i++){
_byte[i]=(byte)(_int>>(3-i)*8);
}
return _byte;
}
public static int byteToint(byte[] _byte) {
int _int=0;
int mask = 0xff;
int temp = 0;
for (int i = 0; i < 4; i++) {
_int <<= 8;
temp = _byte[i] & mask;
_int |= temp;
}
return _int;
}
}
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -