Today, when I was coding in Java, I saw the power of ASCII code in Java. Wrote a Coderutils.java and will expand it later.
[Java] View plain copy package com.xingxd.study.test; import java.io.file; import java.io.filewriter;
Fast Key
function
Notes
command+1
Quick fixes (automatic guide packs, etc.)
For example, with the SYSO, and main coordination can quickly construct method signature
alt+/
Auto-complement
JDK1.5 new features ==>>> character streams and byte stream differences, use scenarios, related classes ==>>> thread safety concepts, Several ways to implement thread safety ==>>> the difference between abstract classes and interfaces, the
Packing classJava is an object-oriented programming language, the emergence of packaging class to better reflect this idea.Second, the wrapper class has attributes and methods as a class, and the functionality is stronger than the basic data type.
Shallow copy: When an object is copied, a variable of the base data type is recreated, and the reference type is pointed to or pointed to by the original object.
Deep copy: After copying an object, both the base data type and the reference type are
Thread synchronization mechanism
Synchronization mechanisms are provided in Java to effectively prevent resource conflicts. The synchronization mechanism uses the Synchronized keyword. 1. Sync Block
The synchronization block is called a critical
java Image Filters is a set of class libraries developed by Jhlabs to handle Java images, providing a variety of commonly used image processing effects, such as invert colors, distortions, water ripples, bumps, black-and-white effects, and so
1. Title:
The topic Description assumes that a coded range is 25 letters of a ~ y, from 1-bit to 4-bit encoding, if we sort the encoding in dictionary order, form an array as follows: A, AA, AAA, AAAA, Aaab, AAAC, ..., b, Ba, BAA, b AAA, Baab, Baac .
The java.io package contains almost all the classes that are required for operation input and output. All of these stream classes represent input sources and output targets.Streams in the Java.io package support a wide variety of formats, such as
/** * Desc: Download Tool class * @date 2014-6-26/public class Downloadutil {/** * Desc: According to the file header to determine the request from the browser, so that the targeted file name transcoding * @dat E 2014-6-26 * @param request * @return
Here is a brief introduction to some of the more common concurrent containers, the purpose is to comb. Because the bottom of each class implementation is very complex, with a lot of sophisticated multithreading skills, limited to space and level, do
Reprint: http://blog.csdn.net/chenzhiya/article/details/2274181
Java Practical Experience Swing summary
Objective
This article preface some of my feelings, if you are only interested in the Java practical skills described in this article, you can
Not much to say, directly on the code
ImportJava.util.HashMap;Public classMerchant2xml {Public StaticString buildXML (hashmap map) {StringBuilder Builder =NewStringBuilder (); Builder.append ("\"1.0\"encoding=\\\"Utf-8\\\"?>\ n\ n ");
Jstl has been used before, for example, ,FN is the functionlibrary of Jstl, and C is the tag library of Jstl. Using them, we'll tell the parser as follows:
These directive are equivalent to the following. Although prefix (or namespace) can be set
8 Basic types of Java (Byte, short, Integer, Long, Character, Boolean, float, double), except for Float and double, all six of them implement a constant pool. However, they use constant pools only when they are greater than or equal to 128 and are
Branching structure:Choose the direction of execution depending on whether the condition is established or not.(i) If branch structure:statement 1;if (conditional expression) {When a code block//condition is established, the execution
1. Building Java Development environmentThe main point here is that the environment is built under the Windows system Installation of the JDKJava SDK is called JDK, go to its official website to download the nearest JDK can
Java concurrency three major propertiesIn the Java memory model, there are three major properties: atomicity , ordering , and visibility .atomicity : Either an operation or multiple operations, or all execution and execution of the process is not
The concept of anonymous objects an anonymous object is a statement that creates an object, but does not assign an object address value to a variable .such as: A class that already exists:public class person{public void Eat () {System.out.println ()
Inner class conceptWhat is an internal class Writing classes inside other classes can be written in the member and local locations of other classes, where classes written inside other classes are called inner classes . Other classes are also
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