Recently used Digester
I think it is quite good. It simplifies JavaProgramXML callCode.
It can also be verified
.....................
Longest-used command
Digester. setvalidating (true)Digester. addobjectcreate ("*/demo", demoitem. Class
Input three integers x, y, and z. Please output these three numbers from small to large.
Package WZS. arithmetics; import java. util. Random;/*** input three integers x, y, and z. Please output these three numbers from small to large. * @ Author
Enter a day of a year to determine the day of the year?
Package WZS. arithmetics; import java. util. threads;/*** question: enter a day of a month to determine the day of the year? * @ Author wwx154783 **/public class test_wzs13 {public static
Package WZS. arithmetics; import java. util. Random; // question: Use recursive method to calculate 5 !. Public class test_wzs21 {public static void main (string [] ARGs) {writable input = new writable (system. in); int A = input. nextint (); system.
Package WZS. sort; import Java. util. arrays; // count sorting // find the largest and smallest elements in the array to be sorted // count the number of times each element with a value of I appears in the array, store the I entry of array C //
Package WZS. arithmetics; import java. util. Random; // question: Take an integer a from 4 ~ 7 digits. Public class test_wzs27 {public static void main (string [] ARGs) {writable input = new writable (system. in); long number = input. nextlong ();
Package WZS. arithmetics; // question: How old are five people sitting together? He said he is two years older than 4th. // Ask the age of 4th people. He says the age is 2 years older than 3rd people. Ask the third person, and say that the person is
Programming is a concrete solution to the problem. just like building a house, what kind of materials should be used to build a style building? What is the specific position... different architects have different methods. to standardize the solution
Reference: Introduction to http://www.open-open.com/lib//view/open1342696876495.html ehcache
Let's start with the project. [RMI mode];
Basic Environment: A creates two web projects respectively. C1 and C2 are respectively added to the jar package of
Read data in one row
File Reading String Path = request. getrealpath (""); // obtain the path of the current directoryFilereader Fr = new filereader (path + "// file // Inc // t.txt"); // create a filereader object and instantiate it as
Package COM. arithmetic; // Binary Search Tree, an empty tree, or a binary tree of the following nature: // if its left subtree is not empty, then the values of all nodes on the left subtree are smaller than the value of its root node; // if its
Package WZS. sort; import Java. util. arrays; // Insert the sorting directly. // basic idea: In the number of groups to be sorted, assume that the preceding (n-1) [n> = 2] The number is already in the correct order. Now we need to insert the nth
Package com. arithmetic; // heapsort is a sort algorithm designed by using the data structure of heap. A heap is a structure similar to a fully binary tree. // It satisfies the heap nature at the same time. That is, the key value or index of a
It is very convenient to use the ASM package to modify the class file, but unfortunately, ASM does not provide ready-made tools, so we can use the powerful bytecode operation capability provided by it to do it ourselves:
The basic idea is as follows:
Reference tools:
1. visualvm
Visualvm is a resource analysis tool that has been updated from JDK 6 to 7. It monitors memory and CPU by default. It can tell you which class and method consumes resources, but it does not display the code flow.
2.
List of basic function classes for jodd: (http://jodd.org/doc/index.html)
Beanutil-fastest bean manipulation library around.
Cache-set of common cache implementation.
Compiler-embeded Java compiler that usesJikesOrJDK.
Printf-formatted value
About serialization
The serialized class must be implements serializable. Otherwise, an exception is thrown.
Some changes to the serialized class will affect the serialized object. For example, the object will be cleared.
Appendix: Example:
The class provided by the java. AWT. datatransfer package can only cut or copy the program to the system clipboard.
The instance to be executed today is to implement the copy, cut, and Paste functions by yourself. First
1) Copy function: Get
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