2018-1-23 by Atlas
System structure
Navigable: Navigable, understood to be orderly.Priority: preferred.Other individuals feel that they are often not explained.The storage structure and relationships of map and collection systems
One, the directory in Windows. Master These concepts: the drive letter (consisting of a letter plus a colon), the root directory (\), the current directory, click the Address bar to see the current directory path, enter the path in the address can
The thread concept is not to be mentioned here.Here are three ways to start a thread.1. Inherit thread Public class extends Thread { @Override publicvoid run () { int i = 0 ; while (I ) { i+ +;
1. x >>n (Signed)X moves the n bits to the right, and the sign bits of x fill the top.If the even right shift can be considered x/(2^n).2.x The highest bit of x (that is, the sign bit is unchanged), the other bits move n bits to the left, and the
One, what is Huffman treeis a two-fork tree with the shortest length of a weighted path, also known as the optimal binary treeWeighted path length:wpl= (w1*l1+w2*l2+w3*l3+...+ wn*ln)N a weighted value Wi (i=1,2,... N) form a tree with N a two-prong
Development encountered a problem, do not know what caused, a Maven Springboot project, the main class started when the error, said not foundThe main class, at first suspected to be the problem of springboot, casually write a separate class, there
1. Receive two folder paths from the keyboard, copy one of the folders (containing content) to another folderImport Java.io.file;import java.io.fileinputstream;import java.io.fileoutputstream;import java.io.IOException; Import
& and && are both logical andThe difference is that both sides of the & judgment are to be carried out, and the && is short-circuit with, when && left condition is false then no longer judge the right condition, so the efficiency is higherFor
Static is another important key word in Java, which can improve the performance of program and optimize the structure of program in certain environment. The main applications are as follows:A 1.static decorated member variable, called a class
Apply the method to print the calendar in Java.1 ImportJava.util.Scanner;2 3 /**4 * Print a calendar after 1900 years5 *@author: Archer-lcy6 * @date: January 19, 2018 morning 10:20:397 */8 Public classCalendal {9 //note the location of the
Runtime ObjectThe class does not provide a constructor function.The description cannot be a new object, then the methods in the class are directly thought to be static.There are also non-static methods found in this class.Indicates that the class
Spring-boot integrates ehcache to implement the cache mechanism. spring-bootehcache
EhCache is a pure Java in-process cache framework, which features fast and efficient. It is the default CacheProvider in Hibernate.
Ehcache provides a variety of
Common Operations for Binary Trees implemented by Java [previous order creation, previous and later recursive non-recursive traversal and sequence traversal], binary tree Recursion
This example describes common Binary Tree operations implemented by
Java study notes 52 (Network Programming: UDP protocol case), study notes udp
InetAddress class:
Indicates the IP address in the Internet, for example:
Package demo; import java.net. inetAddress; import java.net. unknownHostException; public class
RemoveIf, java8removeif
I remember when I used to look for a job, I met an interviewer who asked me a basic question. The problem is: there is a List with 10 elements. Now I want to delete three elements from it. What can I do? I didn't think about
MD5 encryption !!!, Md5 Encryption
F0e22beeaba14b21203d2e36216a52381. MD5 EncryptionFor beginners, the source code is more realistic than the theory.Package com. kwgproperty. server. util;Import java. security. MessageDigest;Public class MD5Util
Multi-thread and multi-thread
Thread
First, understand the five major states of a thread: new, ready, running, blocking, and termination.
1. New State (New): A New thread object is created.
2. ready state (Runnable): After a thread object is created,
Java-RequestMapping usage, javarequestmapping
RequestMapping is an annotation used to process request address ing and can be used for classes or methods. Used on the class to indicate that all methods in the class that respond to requests use this
Hello World, helloworld
RabbitMQ is a message proxy that accepts and forwards messages. You can think of it as a post office: when you put the mail in the mailbox, you can be sure that the postman will eventually deliver your mail to the recipient.
Java multithreading-Lock/Condition,-lockcondition
In java1.5, Lock objects are used to achieve synchronization, which is more convenient to use.Use ReentrantLock for synchronization
public class MyService { private Lock lock = new ReentrantLock();
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