(a), learning summary1. In Java, through the scanner class to complete console input, consult the JDK Help document, scanner class implementation of basic data input method? Can not only use text description, must write code, through specific
jdk1.8.0_144It is best to read the bottom of the HashMap first and go to the HashMap class in the Java collection.Linkedhashmap is a more commonly used map collection because of its insertion order characteristics. It inherits the HashMap, and many
Tag: Class put ToString value get Eid via obj stringThe problem with getting a value in our Java map is that if you get a null value NULL, then. toString () will make an error and do not know what the reason is.Now I give the specific method is to
First, the understanding of the thread1, the same application, a number of tasks at the same time. Just like QQ chat, open a chat window is a thread.2, the thread can have multiple, but the CPU only do one thing every time. Because CPU processing is
Read-Write Lock interface: Readwritelock, its specific implementation class is: ReentrantreadwritelockUsage scenarios:For a resource, reading can coexist, read and write cannot coexist, and write cannot coexist.Lock downgrade: Change from write lock
Basic data type:Byte 1 bytes positive or negative can represent 2 of the 8-1 square -128~127 (including 0)Short 2 bytes 2 of 16-1 timesInteger type (default is int type)int 4 bytes 2 of 32-1 Times SquareLong 8 byte 2 of the 64-1-time long type is
Behavioral parameterization, a software development model that handles frequently changing requirements. Principle: After writing similar code, try to abstract it.Method 1: Add parameters to the method.Method 2: Define a family of algorithms,
1, TCP protocol is a connection-oriented, reliable, orderly, byte-stream transmission of data, through three handshake to establish a connection, to form a channel to transmit data, in the connection of a large number of data transmission, the
One: How to get the current date1 Packageutil;2 3 ImportJava.text.SimpleDateFormat;4 Importjava.util.Date;5 6 Public classDateutil {7 8 /**9 * Ten * @paramDate Dates One * @paramPattern Date format Yyyy-mm-dd A * @return -
Java reads the configuration file under the resource directory1: Configure files under the resource directoryhost:127.0.0.193002: Read/represent Resource directory this. getclass (). getResourceAsStream ("/config.properties"); New
1 The topic is to give two strings, and then to find the maximum length of the longest common substring of the two strings, assuming my f () method is to find the largest common substring of two strings, compare them from the beginning, and if they
20165223 "Java program design" the second week to summarize the learning contents of teaching materials Summary Chapter II essentials
Identifiers and Keywords
Basic data types
Type conversion Operations
Input/Output data
Causes of thread safety problems:
Multiple threads are manipulating the shared data
There are multiple thread codes that manipulate shared data
When a thread executes multiple code processes that share data, other threads
JDK Installation: (Install Jdk-8u92-windows-x64.exe) 1. Go to the website http://java.sun.com/javase/downloads download the JDK installer 2. Install, install the JDK first, choose the path (ie d/java/jdk), then the JRE (ie d/java/jre)3. Configure
Recently learning some knowledge of high concurrency, when learning to Atomic, run the program, not the same as expectedThe code is as follows Public classLearn13 {atomicinteger count=NewAtomicinteger (0); voidm () { for(inti= 0; i)
Payment Service Provider configuration and payment acceptance process, service provider acceptance
Payment Service Provider acceptance process document address: https://pay.weixin.qq.com/wiki/doc/api/jsapi_sl.php? Chapter = 23_1
1. Service Provider
New Features of JDK 7 Summary instance code parsing, new features of jdk
1. switch supports String parameters.
/***** Switch supports the String parameter jdk7 * @ author huangjiawei */public class SwitchTest {public static void switchTest (String
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