one, the Value object mode
In the Java EE Software Development, the system module is usually layered. The presentation Layer is mainly responsible for displaying the data, defining the UI organization pattern of the database, the business Logic
ArrayList
The ArrayList implementation principle is the dynamic array, why is the dynamic array, that is, when the ArrayList capacity expands, the bottom of the array capacity will automatically expand 50%, and ArrayList is thread unsafe.
(1) Json:javascript Object Notation (JavaScript object notation)
Smaller, faster, and easier to parse than XML data.
The data is represented by name-value pairs, separated by commas, and curly braces hold the object, and the brackets hold the array.
Java is a normative language than Python, and scripting languages like Python
Suitable for rapid development of business logic, such as crawler, data mining, machine learning, etc.
Direction provides a relatively rich interface, because its script
conversion of enumerated variables and other data types in Java
When you define an enumeration type by using an enum, the type that is actually defined automatically inherits the Java.lang.Enum class. Each enumerated member is, in essence, an
The Java.util.zip package provides classes that can process the compression and decompression of files, which inherit from the Outputsteam and InputStream of the byte stream. where Gzipoutputstream and Zipoutputstream can compress data into both
public class Solution {
/**
* @param strs:a List of strings
* @return: The longest common/
p Ublic String Longestcommonprefix (string[] strs) {
//write your code here
if (strs.length==0) {return
"";
int
Arrays: The same type, encapsulated together with an identifier name, is an object sequence or a sequence of basic types of data.
Statement of one-dimensional array: 1 int[] A1; 2 int a1[]
Two formats are the same, the second is in line with C and C
Principles that Java method invocation procedures follow
1 First Java class files, calls to all methods are recorded through symbolic constants.
The relevant content can be obtained through the analysis of class file
2 Find the corresponding
First read the filename, and then the load of the results collected collect, converted to a list, and then print.
Configuration Configuration = new Configuration ();
Configuration.set ("Io.serializations",
See hibernate you give an object, he can dynamically create the name of the table specified in the configuration file, and then enter the data into the database, the original feeling is very magical, but, as if hibernate can not dynamic table to
Delayqueue
is an unbounded blockingqueue that is used to place an object that implements the delayed interface, where the object can only be fetched from the queue when it expires. This queue is ordered, which is the longest delay due time for the
Cyclicbarrier means a recyclable (cyclic) barrier (Barrier), which is a newly added concurrency tool for JDK 5 and needs to be imported java.util.concurrent.CylicBarrier to be used. Cyclicbarrier applies to scenarios where multithreaded concurrency
Put the following two tool classes into the project, and then the bean that receives the parameter, plus 2 annotations before the parameter variable.
@JsonSerialize (Using=datejsonserializer. Class)
@JsonDeserialize (Using=datejsondeserializer.
Set and MapThrough the inheritance relationship system, we can draw the Setmap enumsetenummap sortedsetsortedmap treesettreemap Navigablesetnavigablemap Hashsethashmap Linkedhashsetlinkehashmap on the surface of these two sets is not much of a
We know that the static variables in the class are shared by the memory space of all the object instances of the class while the program is running, and that some variables should be declared as static variables in order to save system memory
JAVA Native Load DLL library, change library path to absolute path or the following problem
caused By:java.lang.UnsatisfiedLinkError:Unable to load library XXX
Looking for a half-day reason, the original is the absolute path of the separator has
Given A linked list, reverse the nodes of a linked list K at a time and return to its modified list.
If the number of nodes is isn't a multiple of k then left-out nodes in the end should remain as it is.
You could not alter the values of the nodes,
1. In the class, the member variable declared with static is a static member variable, which is a public variable of that class, initialized at the first time, and only one for all objects of the class.
2. A method declared with static is a static
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