Ant Introduction Ant is a Java-based build tool. It is theoretically similar to the make tool, but overcomes some of the inherent flaws of make.Traditional make is a build tool based on the operating system shell, although it is also possible to extend the make tool based on
A very useful Java decompilation tool: the official description of "the" Java decompiler project "aims to develop tools in order to decompile and analyze Java 5" Byte Code "and the later versions .".
Official Website: http://java.decompiler.free.fr/
Effect
It also provides Eclipse plug-ins:
The addres
and its distribution, based on histograms and meters.
Health ChecksMetrics provides a standalone module: Health Checks, which is used to detect whether application, its submodules, or its associated modules are functioning properly. The module is a standalone Metrics-core module, and when used, imports the Metrics-healthchecks package. Dependency > groupId >com.codahale.metricsgroupId> Artifactid >metrics-healthchecksartifactid> version >3.0.1versi
pipe (pipe) or socket socket (socket). IPC can not only realize the communication of internal process of the system, but also realize the communication of process between systems.When the Java virtual Runtime is running, most of the time there is only one single process, and you can also create a new process through Processbuilder.Thread:Threads are also known as lightweight processes (lightweight processes). The process and thread headers provide th
Jinfo (Configuration info for Java)The Jinfo function is to view and adjust the virtual machine parameters in real time.Jinfo Command format:jinfo [ option ] pid
PID is the virtual machine process ID (can be queried with JPS)
Option list:
options
-flag
to print the value of the named VM flag
-flag [+|-]
to enable or disable the named VM flag
-flag
The JDK version I used was the 1.6.0_37 version, the operating system is Windows XP, and today I want to use some management tools under the%java_home%/bin/directory, and the results are in trouble. You cannot list a Java virtual machine running locally by using the JPS command, and you can use JVISUALVM to prompt "A local Java application cannot be detected."The cause of this problem can be seen: http://do
MAVEN directory structure directly3. Complete the initial configuration of the Pom configuration file4. The completed directory is as follows:5. Handling Red Errorsmanually create a Web-inf folder under the WebApp folder, and put a Web. xml file in it6. Working with compiled versionsAdd the following code to the Pom.xml:7. Create a servlet8. Modify Web. Xml to remove Duplicate codeAdd the jar package and add the following code to the Pom.xml:You can see that the jar package already exists in th
.@ignore:The test method for the metadata token is ignored in the test. Use this tag to mark the method when the test method has not been implemented, or if the method of testing is outdated, or if the method can be tested under certain conditions (for example, a database join is required, and the database is not connected at local testing). At the same time, you can pass aStringparameters to indicate why this test method is ignored. For example:@lgnore ("the method has not yet been implemented"
Problem 01:java what the virtual machine tuning is.
Question 02: How to determine whether the tuning is effective.
Question 03: What theoretical knowledge is required to tune Java virtual machines.
Question 04: What data is needed to tune a Java virtual machine.
Question 05: How to get the data needed for tuning.
Question 06: Where to get the virtual machine
Compile One: Introduction:
Ant is a compilation tool for Jakarta, and if you understand the makefile under Linux/unix you'll be very easy to
Understand the use of ant. Ant is best for you to use UltraEdit (EditPlus) to write Java programs, and then you use ant to compile, and Javadoc, to generate a Jar,war, The implementation of the file copy can be in Build.xml through different tager to achieve, or very c
mechanism to develop a unified indentation specification is a truly operable system.
Introduction to several open-source code beautification tools
Tool Name applicable language introduction installation/Use
Cindent is synonymous with code beautification tools. indent is a standard tool attached to GCC,
Indent [Options] [input-files]
Indent [Options] [Single-Input-file] [-O output-file]
Perlperltidy is al
containers are not synchronized.
18-10, tool class-Collections sorting
1. java. util. Collections
This class is completely composed of static methods that operate on the Collection or return the Collection.
2. Collections is a work class of the Collection framework, and the methods in it are static.
Static
> Voidsort (List
List)
Sort the specified list in ascending order based on the natu
[] args) {ArraylistA1.add ("ABC1");A1.add ("ABC2");A1.add ("ABC3");for (String s:a1)SOP (s);HashmapHm.put (1, "a");Hm.put (2, "B");Hm.put (3, "C");For (Integer I:hm.keyset ())SOP (i+ "::" +hm.get (i));For (map.entrySOP (me+ "::" + "--" +me.getkey () +me.getvalue ());}public static {System.out.println (t);}}/** New features in version 1.5, 1. Variable parameters:* is a shorthand form of an array parameter that does not have to be set up manually every time the array object is created.* Simply p
Recently free time to tidy up a commonly used tools, repeating the wheel is a waste of time, if not correct or need to improve the place, welcome advice ... Packagecom.hsuchan.business.utils;ImportJava.io.File;ImportJava.io.FileOutputStream;Importjava.io.IOException;ImportJava.io.InputStream;ImportJava.net.URL;Importjava.util.Properties;ImportOrg.apache.log4j.Logger;/*** Java Properties File Operations Tool
We often encounter in the site or software to register a new user to our registered mailbox to send an activation email, and then we go to the mailbox Click Activate Connection after our user name to log in, the process is when we registered successfully after the database has been credited to the user's information, but the user status is not available, Therefore, the user name is not used properly at this time. Therefore, the system needs to send an activation email to our registered mailbox,
Because Java's simple types cannot accurately perform floating-point operations, this tool class provides precise floating-point operations, including addition, subtraction, multiplication, division, and rounding. It can be used directly in the past, which is very convenient.
Import java. Math. bigdecimal;/*** Because Java's simple type cannot accurately perform operations on floating point numbers, * t
public class Tool {private static final String UNIT = "Hundreds of thousands of thousands of hundred million to pick up the yuan angle points";private static final String DIGIT = "0 One and three Woolu qi Ba Jiu";Private static final Double max_value = 9999999999999.99D;public static String Change (double v) {if (V Return "argument illegal!";}Long L = math.round (v * 100);if (L = = 0) {Return "0 yuan whole";}String strvalue = l + "";I used to control
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.