The topics are as follows:
Processing of stringsIn actual development work, the processing of strings is the most common programming task.This topic is to require the program to the user input string processing. The specific rules are as follows:1.
After a few years of writing Java programs, I saw a String of Endwith Startwith today. I'm really sorry.There is also a case-insensitive string comparison. String.case_insensitive_order
Later need to develop habits, for no matter familiar unfamiliar
First of all, char type:The char type is used to represent a single character. To figure out the char type, you must understand the Unicode encoding table.Determines the use of a 16-bit Unicode character set when designing Java. can represent 65,536
In a word: logic is the same, concrete implementation is different
1. Use the scene
A. Multiple subclasses have common methods, and the logic is essentially the same;
B. Refactoring, the same code is extracted to the parent class
2. Advantages
A.
1. Concurrent amount of TIME session
A cluster session sharing
b is generally stored in cookies when developing a Web site with concurrent traffic. Encrypted cookies, if the client browser disables cookies, prompts the customer to
C Single Sign-on
HASHMAP is not thread safe
The following figure shows the realization of HashMap's Get method, which is judged by the hashcode and Equals method.
It is possible to implement the equality criteria for custom object by overriding the Hashcode and
Obviously, the system tray in Java, if you want to implement, it is important to two classes, one is Systemtray, and the other is TrayIcon. Need to set a good picture for trayicon, it needs to display the information and the right click of the
This article link: http://blog.csdn.net/kongxx/article/details/7527094
Apache CXF One of the actual combat Hello World Web Service
Apache CXF Combat II Integrated sping and Web container
The first two articles describe how to build the most basic
Spymemcached
* Http://www.couchbase.org/code/couchbase/javao An improved Java APIs maintained by Matt Ingenthron and others at Couchbase.o aggressively optimised, ability to run async, supports binary, protocol support and Membase couchbase, etc.
1, the use of Jpegimageencoder,eclipse error is as follows:
Access restriction:the type JPEGImageEncoder is isn't accessible due to restriction on required library C:\Java\jre1.6.0_07 \lib\rt.jar
Access restriction:the type Jpegcodec is isn't
This article address: http://blog.csdn.net/kongxx/article/details/7259834
Java socket Combat one single-threaded communication
Java Socket combat two multi-thread communication
Java socket Three-combat Transfer object
The previous article talked
In these days, the company has a project, to use Java to generate Word documents, search on the internet and did not find a good build Word document library, find the Apache POI can be used, but all release version also does not support word class.
We're doing java. Web project, we process the request by using the thread pool.
Why use a thread pool?
In a single-threaded scenario, the next request is processed only after a request has been processed, but the CPU is idle during some IO
In this article, Java uses reflection mode to invoke the implementation class of an interface, an inherited subclass of an abstract class. Please listen to the one by one-way below.
1. The first step is to create the Com.newer.reflex package under
Ubuntu/debian JAVA Chinese Display1.Create a directory under the jre/lib/fonts/fallbackLike I'm here.mkdir/usr/local/jdk/jre/lib/fonts/fallback/2.To fallback a Chinese fontYou can copy a SIMSUN.TTC font to the
In the classic Java Web program, the deployment descriptor Web.xml is essential, where we need to configure a variety of components, including servlet, filter, and listener, if SPRINGMVC is used, Should be familiar with configuring
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