Java and Eclipse Common operations

Source: Internet
Author: User

Eclipse:

CTRL+F10 Display Line numbers

CTRL+SHIFT+F Automatic Alignment

ctrl+/notes

Java:

Jar Package: Manifest-version-Specifies the version number of the manifest file Main-class-Specifies the entry class that the program runs. Note: Do not add Class extension Class-path-Specifies the path of the support library. “.” Refers to the program run directory, which is the directory where the exported jar package resides. The program runs based on the setting path of the Class-path item to find the support library. Each support library is separated by a space. Here the Hibernate,spring,derby.java-jar ***.jar type conversion int i = Integer.parseint ([String]) is used; String s = string.valueof (i); Other conversions

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)

Java and Eclipse Common operations

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.