Java basic Map interface + Collections tool class, collections tool class
1. In Map, we mainly talk about two interfaces: HashMap and LinkedHashMap.
(1) how to obtain the sorted hashmap
Let's talk about the add, delete, modify, and query functions of Map:
/** Add Map set */Map
The above is the addition, deletion, modification, and query method of Map.
2. Map T
Memory layout of java objects (1): Calculate the memory space occupied by java objects and use of the java object layout tool
I recently learned some knowledge about the memory layout of java objects. I want to know how much memory space a
Heap sorting tool class (applicable to top k problems, java generic implementation) and heap sorting tool class
The Code is as follows:
1 public class HeapSort {2 // method function: retrieve the minimum k values in the list. 3 public static
in lowercase **/ Public Static FinalString lower_letter_regexp = "^[a-z]+$"; /*** * matches a string consisting of a number and 26 English letters **/ Public Static FinalString letter_number_regexp = "^[a-za-z0-9]+$"; /*** * matches a string consisting of a number, 26 letters or underscores **/ Public Static FinalString letter_number_underline_regexp = "^//w+$"; /*** Case-sensitive formal expression batching * *@paramSource * Batch-sourced string *@paramRegExp * Regular Expressions
survivor area. Then tidy up the two districts of survivor.
Full GCOrganize the entire heap, including young, tenured and perm. The full GC is slower than the scavenge GC, so the full GC should be minimized as much as possible. The full GC may be caused by the following reasons:
Dynamic changes in the domain allocation policy of the heap after the last GC
System.GC () is displayed call
Perm field is full
Tenured was written full
-aaauzhlsza2c463.jpg "src=" http://s3.51cto.com/wyfs02/M00/6C/DD/ Wkiol1vuimhx3i-aaauzhlsza2c463.jpg "/>Click the memory button to perform a memory analysis view class650) this.width=650; "title=" capture. PNG "alt=" wkiol1vuimndkaqdaapq9qzatvg045.jpg "src=" http://s3.51cto.com/wyfs02/M01/6C/DD/ Wkiol1vuimndkaqdaapq9qzatvg045.jpg "/>4. Heap dump and thread dump operationsdump file is the memory image of the process, you can save the execution state of the program through the
Java Sensitive word filter, Java sensitive word substitution, Java sensitive Word tool class===========================? Copyright Sweet Potato Yiu September 25, 2017http://www.cnblogs.com/fanshuyao/First, the problem descriptionMany of the content of external websites need to filter sensitive words, avoid political an
Java Decompiler official website address: http://jd.benow.ca/Website Introduction:The "Java Decompiler Project" aims to develop tools in order to decompile and analyze Java 5 "byte Code" and the later ver Sions.Jd-core is a library that reconstructs Java source code from one or more ". Class" files. Jd-core May is used
10 recommended efficient Java tools and class libraries, 10 Java tool Libraries
As a Java architect and developer, some efficient tools are essential for stable and qualified completion of work. Fortunately, there are plenty of tools to support the Java platform. These tools
JAVA application system tool quick tray instance code, java Tray
1. Open various System Tools2. Timed Shutdown (restart and sleep are not implemented. Please refer to the above two articles to expand your own)3. Simple File Operations
Copy codeThe Code is as follows:[Java]Package com. cxy. f;Import
Java image scaling and java image cropping Tool
In the image upload function of the system, we cannot control the size of images uploaded by users. Users may upload images that are dozens of MB to 1 kb. On the one hand, the image size occupies too much space, on the other hand, we cannot display images of the same size on the page. Therefore, we need to scale and
PHP Code formatting tool http://www.waterproof.fr/products/phpCodeBeautifier/
Recently modified a code, there is no indentation, with this can be formatted a bit.
Equivalent to the previous C indent
By the way, write about other languages.
C, C + + C # ==> indent Astyle
Java ==> astyle Jalopy jacobe importscrbber
PHP ==> Phpcodebeautifier
Perl ==> Perltidy
Python ==> pydent
ASP ==> Vbsbeaut
Java static code analysis tool Infer, java static code inferJava static code analysis tool Infer
Author: chszs, reprinted with note. Blog homepage: http://blog.csdn.net/chszsI. Introduction to Infer
Infer is Facebook's latest open-source static program analysis tool. It is u
rights and prevent the company's intellectual achievements from being easily stolen, developers need to have a deep understanding of the decompilation tool to take targeted protection measures.Currently, there are nearly 30 popular Java decompilation tools, of which three are excellent:I. Widely used JadAmong the many Java decompilation tools, several well-known
For example, to count the workload of a Java programmer writing code in one day (for example, the number of lines of valid code, the number of blank lines, and the number of lines of comments), this tool may serve as a reference.
Idea: because the content of each Java source file consists of Java statements, blank line
DJ Java decompiler is a decompilation tool that can be used to compile and restore compiled class files to original java files without additional installation of JVM (Java Virtual Machine) orJDK tool modules can be used. In addition, it also has the role of a
PHP Code formatting tool http://www.waterproof.fr/products/phpCodeBeautifier/
Recently modified a code, there is no indentation, with this can be formatted a bit.
Equivalent to the previous C indent
By the way, write about other languages.
C, C + + C # ==> indent Astyle
Java ==> astyle Jalopy jacobe importscrbber
PHP ==> Phpcodebeautifier
Perl ==> Perltidy
Python ==> pydent
ASP ==> Vbsbeaut
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.