Java和eclipse常用操作

來源:互聯網
上載者:User

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)

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.