1. Duplicated code
CodeRepetition is almost the most common odor. He is also one of the main goals of refactoring. Code duplication often comes from the copy-and-paste programming style. Oaoo is an important indicator of a good system.
2. Long
This article introduces the bridge (Bridge) Concepts, usage, and usage of the PatternBridging ModeFor development.
Bridge Mode Concept
The bridge mode is one of the constructor design patterns. Based on the minimum design principle of classes,
1. Install the dependent Libraries
Bzip2 and zlib need to be installed
Zlib is simple. Yum can handle the following issues:
YumInstall Zlib-devel
However, Bzip2 on Yum does not seem to comply with the minimum version
The most data we operate on is text, so the content of string text is particularly important. Here is a summary.
The character-related classes are as follows:
1. character. Character is an encapsulation object for char and an operation for a
1. icompilationunit originalunit =...; // get original compilation unitThe method for obtaining an icompilationunit instance is simple and will not be detailed here.
2. originalunit. becomeworkingcopy (New subprogressmonitor (Monitor, 1); // get the
The file class is the packaging class of the file name and its directory path. The file class provides an abstraction for processing the complex file and path name problems that most platforms depend on in an independent way.
The file class contains
1. Cause
JDK needs to read the font list from the font configuration file. The default font list does not contain any Chinese font.
2. SolutionAdd a Chinese font to the JDK font configuration file
3. Procedure
3.1. Copy the font file to the JDK
1. Method overload)
Method overloading means that multiple methods have the same name, but different method parameters. Different method parameters have two meanings: one is that the parameter types are different, and the other is that the number
The Java toolkit class provides three APIs related to awtevent:
1. Public void addawteventlistener (awteventlistener listener, long eventmask)
2. Public void removeawteventlistener (awteventlistener listener)
3. Public awteventlistener []
Differences between equals and = in Java
= Compare the addresses of two objects, while equals compares the content of two objects.
Obviously, when equals is true, ==is not necessarily set to true;
The importance of basic knowledge is expected to
Original address: http://www.javaresearch.org/article/showarticle.jsp? Column = 545 & Thread = 17460
Hash table is an important storage method and a common retrieval method. The basic idea is to take the value of the link code as the independent
Do you think you are a Java expert? Are you sure you have fully mastered the Java exception handling mechanism? In the following code, can you quickly find the six problems for exception handling?
1
FTP command
The main FTP operations are based on various commands. Common Commands include:
◆ Set transmission mode, which includes ASC ⅱ (text) and binary mode;
◆ Directory operations: change or display the current directory of the remote
In Java, You can implement multithreading in two ways. One is to inherit the Thread class and the other is to implement the runnable interface;
The thread class is defined in the Java. lang package. A class inherits the Thread class and
To a certain extent, the pool technology can significantly optimize the performance of server applications, improve program execution efficiency and reduce system resource overhead. The pool mentioned here is a pool in a broad sense, such as the
In the morning, QA in the United States reported an exception:
Caused by: Java. Io. ioexception: stream closedAt java. Io. bufferedinputstream. getinifopen (bufferedinputstream. Java: 134)At java. Io. bufferedinputstream. Fill
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