Introduction of java classes and objects

*/ Class members: 1. Attribute is also called member variable or global variable or Field. 2. Method is also called member method or method or function./* package com.zy.java1; public class Person { //attribute String sex; private int age; String name; //Method publi ...

Posted on Sun, 13 Oct 2019 09:04:37 -0700 by joecooper

java bean attribute verification framework valid

Project introduction Parameter verification is a very common requirement in java development. But there are still some problems in the use of hibernate-validator. Characteristic Support for fluent-validation Support jsr-303 annotation Support i18n Supporting user-defined policies Support user-defined annotations Open source address valid Crea ...

Posted on Sun, 13 Oct 2019 04:08:18 -0700 by Paul Moran

Concurrent Queue of Concurrent Programming

Concurrent queues JDK provides two implementations on concurrent queues. One is the high performance non-blocking queue represented by Concurrent LinkedQueue. One is the blocking queue represented by the BlockingQueue interface, which inherits from Queue in either case. 1. Blocking queue and non-blocking queue The difference between blocking qu ...

Posted on Sun, 13 Oct 2019 03:49:45 -0700 by TabLeft

Basic Experiment of Surveying and Mapping Programming 4 CSU

Basic Experiments of Surveying and Mapping Programming 4 (2) CSU Creation of Class 4 of Experiments (Leveling network design) I. purpose of the experiment II. Contents and Requirements of Experiments 3. Design and implementation: 3.1.1 Basic Framework 3.1.2 Membership 3.1.2 Elevation Approximation ...

Posted on Sat, 12 Oct 2019 14:02:43 -0700 by nadeemshafi9

Spring boot local cache (guava and caffeine)

1. Scene description Because the project needs to use local caching, specifically why not redis, etc., do not discuss, record the process, hoping to help needy friends. 2. Solutions 2.1 Use guava as a local cache The initial idea is to use guava, because there is guava's denpency in the project itself. 2.1.1 pom file Three dependencies are req ...

Posted on Sat, 12 Oct 2019 00:22:20 -0700 by pfdesigns

Introduction to Julia High Performance Dynamic Programming Language

There are 851 words in this article. It takes about 3 minutes to read! Summary Julia is a "brand new" high-performance dynamic programming language. Two days ago, Julia ushered in a major update of its 1.0 official version. Julia sets Python, C, R, Ruby's strengths, feels like a scripting language, and has good support for intera ...

Posted on Fri, 11 Oct 2019 23:53:16 -0700 by davidwhiteuk

Not Wool Sequences(CF-239C)

Problem Description A sequence of non-negative integers a1, a2, ..., an of length n is called a wool sequence if and only if there exists two integers l and r (1 ≤ l ≤ r ≤ n) such that . In other words each wool sequence contains a subsequence of consecutive elements with xor equal to 0. The expre ...

Posted on Fri, 11 Oct 2019 08:55:45 -0700 by shatner

Spring MVC Source Analysis

I. Analysis of Processing Processes 1. First of all, Tomcat loads and parses the / WEB-INF/web.xml file every time it starts up, so you can find a breakthrough from web.xml. The main code is as follows: <servlet > <servlet-name >spring-mvc</servlet-name> <!-- servlet class --> <servlet-class >org. ...

Posted on Thu, 10 Oct 2019 23:51:20 -0700 by the_ut_tick

Shell scripts -- regular expressions

The Concept of Regular Expressions Regular expression: Use a single string to describe and match a series of strings that conform to a certain syntactic ruleIt is composed of ordinary characters and special characters. It is commonly used in script programming and text editor, such as php, python, she, etc. It is abbreviated as regex, regexp, ...

Posted on Thu, 10 Oct 2019 22:24:58 -0700 by keyboard

5 custom exception

Overview of custom exceptions When the exception in java can not meet the needs of developers, you can customize the exception. package com.monkey1024.exception; public class UserService { //Method of registration public void register(String name){ if(name.length()<6){ ...

Posted on Thu, 10 Oct 2019 13:24:42 -0700 by Kingy