Work content:
1. Set Learning
2. Generic Learning
Learn to share:
1. Typical generic collection list,hashmap
Common definition Generic Collections:
list list = new arraylist ();
"The storage type must be of type T, you can use object to store all
New two projects, one client, one server, first start the server and then start the client
The read-write operation thread classes for both projects are essentially identical
Service side:
Import Java.io.BufferedReader;
Import
This article is based on Oracle Java official documentation, after personal practice to organize and accumulate, for reference only.
1 Java.time.Month is an enumeration type, consisting of 12 constants representing January to December
/* ============
I can't remember peek poll. A large pile of operations, record the difference deque interface
AddFirst AddLast
Offerfirst Offerlast
Removefirst Removelast
Pollfirst Polllast
GetFirst GetLast
Peekfirst Peeklast
(Push pop stack operation is
Nonsense has been implemented in Java encryption phone number, there is a specific encryption process annotation this inside said, this article I directly on the code.
Please see:
/** * @Title: Testmain.java * @Package org.test * @Description:
Before we learn concurrentskiplistmap we need to learn a randomized data structure-jump Table (skip list)There are many ways to find an array, if it is ordered, you can use a binary lookup, binary lookup requirements elements can be randomly
Reprint Please indicate the source: http://blog.csdn.net/ns_code/article/details/17161237
There are two ways to implement multithreading in Java: To inherit the thread class and implement the Runnable interface, as long as it is multi-threaded in
Ideas:1. Returns an array of all 0 when the number of 0 is greater than or equal to 2 o'clock2. When the number of 0 is 1 o'clock, 0 corresponds to total, the other is 03. When no 0 o'clock, total divided by the current number
public class Solution
With the frontline synchronization only know the Synchronize keyword, then know that there is a lock, why also have a lock to achieve synchronization? Synchronized's limitations occupy the lock thread waiting for IO or other reasons to be blocked,
1, what is the MVC pattern?MVC (Model View Controller) is a design pattern that uses an MVC application to be divided into three core components: models, views, controllers. Each of them handles its own task. M refers to the data model, v refers to
the first class is about the object
1. All things are objects
2. The relationship between the two:
3. its definition rules
attribute + method
Case:
Public class people{
//Properties
Public String name;//name
Public char sex;//sex
public int
Statement: This blog for the original blog, without permission, may not be reproduced. Small partners if it is in other places to see, suggest or to csdn to see it (the original link address for http://blog.csdn.net/bettarwang/article/details/2616640
The intent of the singleton pattern is to ensure that a class has only one instance in the entire JVM and provides him with a global access point.single case mode mechanismHow to prevent other developers from creating new instances of the class.You
This paper mainly combines the implementation of the Restfuljava back-end to summarize the exception processing architecture.
1. Classification and processing methods of exception
Exception is a very important feature of object-oriented language,
Recursive Implementation
In order to find the depth of the tree, we can first find the depth of its left subtree and the depth of the right subtree, which can be implemented recursively, and the exit of recursion is the node is empty. The return
This is the wrong time to use maven today.
And then checked on the Internet, the JDK version does not match,There are several places you can modify
Workaround 1:
The JDK I use is 1.8
Windows-proferences-java–compiler set JDK to
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