eclipse:
F3 尋找類和函數定義
ctrl+shft+r 找類
ctrl+F10 顯示行號
ctrl+shift+F 自動對齊
ctrl+/ 注釋
java:
jar包:Manifest-Version - 指定資訊清單檔的版本號碼Main-Class -指定程式啟動並執行入口類。注意:類名後不要加class副檔名Class-Path -指定支援庫的路徑。“.”指程式運行目錄,即匯出的JAR包所在目錄。程式運行時依據Class-Path項的設定路徑來尋找支援庫。每一個支援庫之間用空格隔開。在這裡使用了hibernate,spring,derby.java -jar ***.jar 類型轉換int i = Integer.parseInt([String]); String s = String.valueOf(i); 其他轉換
string->byte Byte static byte parseByte(String s)
byte->string Byte static String toString(byte b)
char->string Character static String to String (char c)
string->Short Short static Short parseShort(String s)
Short->String Short static String toString(Short s)
String->Integer Integer static int parseInt(String s)
Integer->String Integer static String tostring(int i)
String->Long Long static long parseLong(String s)
Long->String Long static String toString(Long i)
String->Float Float static float parseFloat(String s)
Float->String Float static String toString(float f)
String->Double Double static double parseDouble(String s)