Package com.kpp;/** * Single-linked list reverse * Disconnect the single-linked list from the first and second nodes, then 2nd, 3 ... Each node is inserted before the first node in turn * @author KPP * */class lnode{private String data;private lnode
1 Packagesorting;2 3 /**4 * Heap Sorting5 * Average O (nlogn), preferably O (nlogn), Worst O (nlogn), Space complexity O (1), unstable, more complex6 * @authorZeng7 *8 */9 Public classDuipaixu {Ten One Public Static voidDuipaixu (int[] a)
1 Packagesorting;2 3 /**4 * Select Sort5 * Average O (n^2), preferably O (n^2), Worst O (n^2); Space complexity O (1); unstable; simple6 * @authorZeng7 *8 */9 Public classXuanzepaixu {Ten One Public Static int[] Xuanzepaixu (int[] a) { A
Source: Why does Java has transient variables?The transient keyword in Java indicates that the transient variable should not be serialized (transient).Refer to Java Language specification, Java SE 7 Edition, section 8.3.1.3. Transient fields:被
One of the simplest event bus implementationsMicrobus UseRegistered class Receiver implements MicroBus.BusEventReceiver { public onCreate() { bus.register(this, String.class); } public onDestroy() { bus.unregister(this, String.
Recently, the design pattern has been more and more attention by enterprises and programmers, and as a beginner, I will learn the bit by post to the blog park, share ~The Java.util package provides support for the observer pattern, and the following
L JBS1. List the advantages of the 10 Java languagesA: Free, open source, cross platform (platform independence), easy-to-use, fully functional, object-oriented, robust, multi-threaded, structured neutral, mature platform for enterprise applications,
Variable parameter: The element to be manipulated is passed as a parameter, and the parameter is implicitly encapsulated as an arraypublic static void main(String[] args) { show(1,2); show(); show1("java",1,2,3); //顺序不能变 }
1 Packagesorting;2 3 /**4 * Merge Sort5 * Average O (nlogn), preferably O (nlogn), Worst O (nlogn), Space complexity O (n), stable, more complex6 * @authorZeng7 *8 */9 Public classGuibingpaixu {Ten One Public Static voidMerge (int[]
Brief introduction:The Java class of the Protocol-based request/response service. In layman's words, a servlet is a small program that runs on a server. Why is it called a servlet? The applet represents a small application, and Server+applet is a
Simple multi-threaded applications
Well, when talking about the thread application, we need to first know how to create the thread. There are two ways to create a Thread: 1. inherit Thread class 2. Declare and implement the Runnable Method
Method 1:
Baseline 2 (48) of the timer, 248 of the baselineFilterChain
When a web project has multiple connectors, and these processors overwrite the same url. In this case, the attacker chain/is formed /.
first
cn. itcast. filter. FirstFilter
second
Basis of the browser 3-page cache and Verification Code Generation (49), over 49
Set some page cache or do not cache
To prevent all browsers from caching pages:
Response. setHeader ("expires", "-1 ");
Response. setHeader ("pragma", "no-cache
LigerGrid Ajax get sorting by PAGE
At the beginning, it was a headache to use ligerGrid for paging sorting. The search, top and bottom pages, and other processing backend cannot accurately obtain the values in the front-end lookup control. There is
Design Mode-adapter Mode
Adapter mode: Convert the interface of a class into anther interface clients CT. adapter lets classes work together that couldni't otherwise because of incompatible interface. this means that the interface of a class is
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