A few days ago, a set of interview questions, one of the problems is the Java JDK we see the Collections.sort () and Arrays.sort () the implementation of the two algorithms is what, many small partners in the heart of the default should be fast-row,
1.MapXtrem for Java custom symbols
The ①bmp format icon needs to be converted to GIF format, followed by the mapxtreme for Java installation root directory for example:
C:/Program
the importance of the HTTP protocol I don't need to say much, httpclient. Compared to the traditional JDK urlconnection, it adds ease of use and flexibility (specifically, we'll discuss later), not only is it easier for clients to send HTTP requests,
Definition: provides a proxy for other objects to control access to this object.
Type: Object-structured pattern
class Diagram:
roles involved in proxy mode
Abstract Theme Role (Subject): declares a common interface between the agent theme and the
To develop a feature based on spring, you need to add the development support environment for spring. The so-called spring support environment is to add the jar, TLD, and XML files needed for spring in a Java Web application, and with these files we
Solving the path problem of resource files when Java applications are packaged
Use NetBeans to do an application, which has been applied to some pictures, there are several sound files, debugging run no problem, after packaging to build the jar, run
Quote Encyclopedia
Combination mode, which combines objects into a tree structure to represent a "partial-whole" hierarchy, which makes the user consistent in the use of individual objects and composite objects. The key to mastering the
First we need to figure out how many number sections have been opened now, and the country numbers are allocated as follows:
Mobile: 134, 135, 136, 137, 138, 139, 150, 151, 157 (TD), 158, 159, 187, 188
Unicom: 130, 131, 132, 152, 155, 156, 185,
There are a lot of times when we need to format some numbers to show that there are four more common ways to summarize:
Package com.example.test.df;
Import Java.math.BigDecimal;
Import Java.text.DecimalFormat;
Import
Original address: http://www.douban.com/note/85247917/
Everyone reproduced also explained the original address, respect for the work of the author's achievements.
Absrtact: Using R to build statistical Analysis Server, Java through TCP/IP protocol
Http://www.open-open.com/jsoup/parsing-a-document.htm
parse and traverse an HTML document
How to parse an HTML document:
String html = "first parse"
+ parsed HTML into a doc. ";
Document doc = jsoup.parse (HTML);
(More details can be viewed to
Use Maven in eclipse to create a WebApp project, choose the following Archtype type:
The resulting project structure is as follows:
The default generated pom.xml files are as follows:
4.0.0 com.gof base-webapp war 0.0.1-SNAPSHOT Base-webapp
the Java garbage collection principle
Today, read the Java garbage collection principle, feel the step-by-step understanding process is very interesting, it is recorded for later use. The main points of the following aspects of understanding: the
There are three classes of field,method,constructor in the Java.lang.reflect package. Describes the domain, method, constructor, respectively. Reference API, a description of these three classes.
Use reflection profiling objects at run time, if
Recently, the project needs to crawl a lot of data from the site, using multithreading technology, each thread crawl data need to be saved to a file, avoid consuming a lot of memory.
Idea: Multiple access threads will save the data that needs to be
Definition: provides a consistent interface for a set of interfaces in a subsystem, and the façade pattern defines a high-level interface that makes the subsystem easier to use.
Type: Object-structured pattern
class Diagram:
structure of the
For example, there is a class that implements the Java.io.Serialize interface:Package com.on.test;public class Testserial implements Java.io.Serializable {}If the code is written just like this, it will give you a yellow warning in eclipse, why,
PackageCom.shiyu.client.frame.utils;Import java.util.*;ImportJava.util.Map.Entry;ImportJava.util.regex.Matcher;ImportJava.util.regex.Pattern;
/** * Created by the Administrator on 2017/1/3. */Public classcountsortlist {/** * list reverse order
1. Basic Ideas
By sorting the data that will be sorted into two separate parts, a part of all the data is smaller than the other part of all the data, and then the two parts of the data for the rapid sorting, the entire sequencing process can be
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