"223-rectangle Area (rectangular region)"
" leetcode-interview algorithm classic-java Implementation" "All topic Directory Index"
code Download "Https://github.com/Wang-Jun-Chao"
Original title
Find the total area covered by two rectilinear
Let's take a look at a single-threaded source code (with detailed comments in the code):
Server (Tcpserver.java):
Import java.net.*;
Import java.io.*;
public class tcpserver{public
static void Main (string[] args) throws exception{serversocket
1th Chapter Java Language QuickStart
1.1 Introduction
1.1.1 Program and Software
1.1.2 Programming language
The popular programming language of 1.1.3
1.1.4 object oriented and process oriented
1.1.5 machine language, assembly language and advanced
1, business log related
If the system is abnormal or the business is abnormal, the first thought is to view the business log
To View the log tool:
Less or more
Grep
tail-f filename to see what's new in real time
PS: Avoid vim directly open large
use of the Java-string class
Directory
Use of the Java-string class using a directory string class understand 1 String class overview 2 construction method String's use code example string's feature cannot be changed once it is assigned
1 Use of
/** * Obtains a specific time from the number of seconds, 24-hour system, such as 2016-12-12 23:23:15 * @param second * @return/public static String Second2moment24 (long s
Econd) {Date date = new Date (second*1000);
SimpleDateFormat ft =
Java.util.Date wants to replace the data java.sql.Date in SQL with the
java.util.Date subclass:
//Get current system time and convert to SQL date type
Java.util.Date date=new java.util.Date ();
Java.sql.Date sqldate=new java.sql.Date (Date.gettime
Writing these things is essentially a record of work contact Storm after the learning progress, since it is work, of course, to knock code, so this article on the sharing of basic Java-api bar.
First look at the diagram below (no excuse to paint),
JAXB (Java architecture for XML Binding) is an industry standard and is a technology that can generate Java classes from XML schemas. In this process, JAXB also provides a way to reverse-generate the XML instance documents to the Java object Tree
The SDK provides several implementations of an ordered set interface Java.util.List, three of which are known to be vectors, ArrayList, and LinkedList. The performance difference for these list classes is a frequently asked question. In this article,
Preface
Today, in the Nuggets, I saw an article about the spring framework for the presentation, which referred to the face test of the cow net. So I downloaded the Cattle Network app, found the interview topic is very rich. I chose the Java aspect
Java memory allocation:
1. Registers: We cannot control in the program2. Stack: Hold the base type of data and object references, but the object itself is not stored in the stack, but stored in the heap3. Heap: Storing data produced with new4.
Article Author: TyanBlog: noahsnail.com Chapter 2 Creating and destroying Objects
This chapter concerns creating and destroying Objects:when and you to create them, where and how to avoid creating, H ow to ensure they are destroyed in a timely
In order to achieve thread safety, we are in front of the lock to ensure the atomic nature, then there is no lock can be implemented thread safety. It starts with the optimistic lock and the pessimistic lock.1. Pessimistic lock. The so-called
60 lines of code write a simple and available memory cache with expiration time
It is very easy to use a cache in a small project. If you want to introduce other third-party caches such as Ehcache, you will need to add a variety of jars and even add
Today, while looking at the source code of LinkedList, I met a hole. I study the source, found LinkedList is a straight line of the linked list structure, but I search data in Baidu, about this part of the source code analysis, all said LinkedList
Comments cited a lot of mistakes, has not been corrected, too lazy, really lazy after work, promised someone's things have not started, not easy to start,
A lot of time is wasted, but planting a tree is best ten years ago, or now. The goal is to be
The previous two articles explained, the interface service construction as well as the interface development, if you have not already understood, may read the article first, the Java Web Development (one) environment constructs and the Java Web
This article for the author in the learning process according to teacher's guidance to organize themselves.
1. JDK, JRE, JVM
①jdk:java Development Kit Java Development Kit
②jre:java Runtime Environment Java Runtime Environment
③jvm:java Virtual
Essential Reason: A configured Java Bean with syntax errors in SQL statements generated automatically by hibernateThe reasons are as follows:Scenario 1: There is a conflict between the field name/table name and the database keywordSituation 2. MySQL5
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