?? util.java
字號:
package xbook.bookstore ;
import java.util.*;
import java.text.*;
import java.io.*;
public class util{
static public String getNowDate(){
return (new SimpleDateFormat ( "yyyy/MM/dd hh:mm:ss a", Locale.US ))
.format( new Date() );
}
static public String Big5ToISO88591( String str ){
if( str == null ) return str;
try{
return new String( str.getBytes( "Big5" ), "8859_1" );
}
catch( UnsupportedEncodingException usex ){
return str;
}
}
static public String ISO88591ToBig5( String str ){
if( str == null ) return str;
try{
return new String( str.getBytes( "8859_1" ), "Big5" );
}
catch( UnsupportedEncodingException usex ){
return str;
}
}
}
?? 快捷鍵說明
復(fù)制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -