Need Jxl.jar PackageCom.rainmer.main;ImportJava.io.File;Importjava.io.IOException;Importjava.util.ArrayList;ImportJXL. Cell;ImportJXL. Sheet;ImportJXL.
I. Custom annotation ClassesTarget limits the scope of use of annotationsTYPE,For classes, interfaces, enumerations, but not annotationsFIELD,field, including the enumeration valueMETHOD,methods, not including construction
Design patterns are divided into three types: created, structured, and behavioral.Among the created types are:Singleton, Singleton mode: guarantees that a class has only one instance and provides a global access point to access itAbstract Factory,
The reflection mechanism of Java has been understood very vague, today because of learning spring, so took some time to finally straighten it out, recordIn addition, recommended reading this article, written very good
Background:It is not very familiar to learn Java EE for some time during college. Later study and in the work more is iOS development, iOS level is upper middle (graduation more than a year, current annual salary tax before 35w about). Have a
Original link: http://coolxing.iteye.com/blog/1236909Two types of mutex mechanisms:1, synchronized2, ReentrantlockReentrantlock is a new feature of Jdk5, the use of Reentrantlock can completely replace the replacement synchronized traditional
The 9 books listed in this article are considered great books in the Java programmer community. When a programmer begins to learn Java, his first question should be how to choose a book as a guide to learning Java. This problem also shows that,
Title:Given n, generate all structurally unique BST 's (binary search trees) that store values 1 ... n.For example,Given N = 3, your program should return all 5 unique BST ' s shown below. 1 3 3 2 1 \// /\ 3
1. The source of the two Sleep (), which is the static method/static local method under Thread.Wait (), which is the final method of object (). 2. Source Code AnalysisA, sleep ()1 Public Static voidSleepLongMillis,intNanos)2
Package Treesettest;import Java.util.Iterator; Import Java.util.treeset;import javax.management.runtimeerrorexception;/* can sort the elements in the set set, the underlying data structure is a two-fork tree, The basis for ensuring element
0, said in frontBefore the main study c/cpp, for some reason, intends to start from the beginning of the Java Foundation from scratch, consolidation. So, starting today to open the hole Java Learning Essays, will be in the review of the Java process
/** * Function: Java read content of TXT file * Step: 1: Get file Handle First * 2: Get file handle as input a byte stream, need to read this input stream * 3: Read to input stream, need to read generated byte stream * 4: one line The output of a
Design Pattern _ intermediary PatternDefinitionDefine an object that encapsulates how a set of objects interact. mediator promptes loose coupling by keeping objects from referring to each other explicitly, and it lets you vary their interaction
Java annotation + reflection Application Record, javaannotation
A small example of annotation and reflection in java is recorded for reference,
The configuration page allows you to dynamically select a class that implements the Check interface, save
Design Pattern _ builder PatternBuilder PatternSeparate the construction of a complex object from its representation so that the same construction process can create different representations. separates the construction of a complex object from its
Command mode in Design Mode
Four roles:
Receiver: The command is finally passed here to execute the command, but multiple commands can be executed.
Command: Has a pointer to the worker er. You need to execute a Command
Invoker: Record and trigger
Single and multi-assignment, distribution
The caller type (parent type) of the method is called the static type. The caller's final type (its own type) is called the actual type.
When the method version is determined by the caller's actual type +
During network communication in JAVA, the objects to be transmitted at both ends of the communication program should not only be serialized, but also have the same class name and package name, object serialization
For example, the project directory
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