java--Common Class (String)

Source: Internet
Author: User

"Common class"

<1> string-related classes (string, StringBuffer)<2> Basic Data type wrapper class<3>math class<4>file class<5> Enumeration Classes "String Class" the <1>java.lang.string class represents the immutable sequence of characters. common construction methods for the <2>string class:string (string original)//Create a copy of the string object as originalString (char[] value)//Create a String object with a character arrayString (char[] value,int offset,int count)//Use a character array to create a string object from the count character sequence starting with the offset entry "Program: string Equality"   "Examples of commonly used string classes"    "Other common methods of the string class" <1> Static Reload methodPublic static String valueOf () can convert the base data type to a string. For example:Public static string valueOf (int i)//convert int data type to data string sequence<2> Segmentation MethodPublic string[] Split (string regex) can return a string array of strings following a delimited delimiter.  Examples of programs:        

java--Common Class (String)

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.