Common Java and eclipse operations

Source: Internet
Author: User

Eclipse:

F3 Search Class and Function Definition

CTRL + shft + R find class

 

CTRL + F10 display row number

CTRL + Shift + F Automatic Alignment

CTRL +/comment

Java:

Jar package: manifest-version-specifies the main-class version of the configuration file-specifies the entry class for running the program. Note: Do not add the class extension class-path-after the class name to specify the path of the supported libraries. "." Indicates the program running directory, that is, the directory where the exported jar package is located. When running the program, you can find the supported libraries based on the set path of the Class-path item. Each supported library is separated by a space. Hibernate, spring, and Derby are used here. java-jar ***. jar type conversion int I = integer. parseint ([String]); string S = string. valueof (I); Other Conversions

String-> 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 static short parseshort (string S)

Short-> string short static string tostring (short S)

String-> integer static int parseint (string S)

Integer-> string integer static string tostring (int I)

String-> long static long parselong (string S)

Long-> string long static string tostring (long I)

String-> float static float parsefloat (string S)

Float-> string float static string tostring (float F)

String-> double static double parsedouble (string S)

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.