0.StringBuilder Type IntroductionThe StringBuilder type is a variable string type, and the StringBuilder type API is basically consistent with the StringBuffer type API, the only difference being that the use of StringBuilder is assumed to be in a
Here, I have sorted out the previous Java Study Notes and published them into multiple series, which will be released in the future.
This article is divided:
1. Object
2. String and StringBuilder
3. Regular Expression Processing in Java
4.
Today, the boss gave the segment encryption and decryption code to share with him:
* String (encoding/encryption) and (Decoding/Decryption ).** Rules:** In base64, the code table is composed of [A-Z, A-Z, 0-9, +,/, = (PAD. Here, the code table
. Net read/write with BOM character encoding
Problem description:
Recently encountered the following problem, upload an UTF-8-encoded XML file to the server, and then use xmldocument to parse the XML file, the file format error is prompted, the
First Lecture Overview1, the string is a special object, once it is initialized, it can not be changed, cannot have subclasses, so the method in string can not be replicated;2. There are two ways of assigning strings1) String S1 = "abc"; --there is
1,string class1.1 Definition : Stringclass represents a string. All string literals (such as) in a Java program "abc" are implemented as instances of this class.strings are constants , and their values cannot be changed after they are created. A
Character encoding is a binary representation of everyday control symbols, text, and common symbols. In order to accurately indicate how to number, how to produce eight-bit byte stream, the Unicode Technical report (UTR) #17提出现代编码模型的5个层次:
// Obtain the location code of Chinese CharactersByte [] array = new byte [2];Array = system. Text. encoding. Default. getbytes ("ah ");
Int I1 = (short) (array [0]-''/0 '');Int I2 = (short) (array [1]-''/0 '');
// Chinese character codes in
Currently, text and PDU (Protocol Data Unit) are commonly used for sending short messages. Use text mode to send and receive short message code simple, easy to achieve, but the biggest drawback is not to send and receive Chinese text messages, and
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.