This blog continues to organize the topic tree based on some OJ questions. Will be updated one after another...
1. tree traversal
Tree definition: connected undirected graph without loops.
Example
1. Restoration of the POJ 2255 Tree Recovery
Find com. genuitec. eclipse. wizards_8.5.0.zmyeclipse75020090612.jar in the installation directory of myeclipse8.5 and disable myeclipse. 1. find com. genuitec. eclipse. wizards_8.5.0.zmyeclipse75020090612.jar ("Common" and "MyEclipse 8.5" Search
Learning without summarization is not counted as learning. This month's learning has gained a lot. Let's share it with you.
I. Classification of design patterns
In general, the design model is divided into three categories:
1. There are five
Freemarker custom tag
1. Error description
freemarker.core.ParseException: Unexpected end of file reached.at freemarker.core.FMParser.generateParseException(FMParser.java:4702)at freemarker.core.FMParser.jj_consume_token(FMParser.java:4573)at
Package test;/*** Implement the moving algorithm before and after the positive and negative elements of the array (the division line is 0 and can be any other number)* Move a negative number forward to the front of the array, and place a positive
I found a piece of code from Kun Ge yesterday, as shown below:
To explain this code, after the end of the layer D query, assign the result of the datatable query to the attributes of the object and then return the object process. kun asked me
The iterator mode is symbiotic with the set. Generally, as long as we implement a set, we need to provide the set iterator at the same time, just like the Collection in java, list, Set, Map, etc. These sets all have their own iterators. If we want
The template method mode is the behavior mode of the class. Prepare an abstract class, implement part of the logic in the form of a specific method and a specific constructor, and then declare some abstract methods to force the subclass to implement
1: inheritance relationship
A: Hashtable inherits from the Dictionary class to implement the map and cloneable interfaces.
B: HashMap inherits from the AbstractMap class to implement the map and cloneable interfaces.
HashTable:
public class
I. OverviewJava. util. concurrent has a very convenient thread pool implementation. The Executor framework provided contains the static factory methods for managing and implementing Runnable tasks. The Executors class provides various types of
1. Motivation and definitionIn factory mode, a factory can only provide one or more products. When there are many product types, a series of GUI controls (for example, we want to create cross-platform buttons, menus, text boxes, and so on) are
General steps for importing an open-source project to eclipse
Zhou yinhui
After downloading it to an open-source project, we still want to import it to eclipse. The general steps are as follows:
Open the source code directory,
Batch Data Processing refers to processing a large amount of data in a transaction.
You can perform batch operations at the application layer by using the following methods:Through Session
Using HQL
Use StatelessSession
Use the jdbc api (as long as
POJO class and database ing file *. hbm. xml
The poing between POJO classes and relational databases can be defined in an XML document. The extension of the ing file is. hbm. at runtime, xml Hibernate will generate various SQL statements based on
What is the responsibility chain model?
So that multiple objects have the opportunity to process the request, so as to avoid the coupling relationship between the request sender and the receiver. Connect the object to a chain and pass the request
Two-way 1-n and two-way N-1 are exactly the same. Two-way 1-n needs to be able to access one end of n at one end. domain model: the multi-to-one bidirectional association between Order and Customer requires a Customer attribute defined in the Order
Basic knowledge:
In Java, java. lang. string can be used to represent a long String (more than 255 characters in length). byte [] can be used to store binary data of images or files. in addition, java. SQL. clob and java. SQL. blob type, which
There are two methods for determining the same in java:
First, use = to directly determine the same, which is suitable for comparison between two variables, one variable and one object.
For example:
int a=3,c=3;Integer b=new
/*** @ Author gao */package gao.org; public class RunnableDemo implements Runnable {@ Overridepublic void run () {// TODO Auto-generated method stubfor (int I = 0; I
Main thread output: 0 main thread output: 1 main thread output: 2 new thread
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