On the first day of learning API, you have to know this! --------Three days without blog, full of guilt

The original String type is so powerful, I just thought it was used to define a String. Next is a day to learn String type by doing homework.At the end of the article, there is the help document of JDK API 1.6 in Chinese. It is necessary for novices to get it for free! Brother, I have been looking for i ...

Posted by louisp on Mon, 16 Mar 2020 21:31:05 -0700

Java 8 Steam example collation

Why Steam is needed Steam in Java 8 is an enhancement of collection object function. It focuses on a variety of very convenient and efficient aggregate operations or bulk data operations for collection objects With the help of the same new Lambda expression, the Steam API greatly improves programmin ...

Posted by leewad on Mon, 16 Mar 2020 00:23:52 -0700

Collection interface for day20_java collection

Overview of the Java Collection Framework On the one hand, object-oriented languages represent things in the form of objects. In order to facilitate the operation of multiple objects, objects need to be stored.On the other hand, there are drawbacks to using Array to store objects, while Java collect ...

Posted by grissom on Thu, 12 Mar 2020 18:17:05 -0700

java design mode -- strategy mode, payment method of handwritten mobile phone

Strategy mode It defines the algorithm family and encapsulates them separately so that they can replace each other. This mode makes the change of algorithm not affect the users who use the algorithm. Multiple if...else.. and switch statements can be avoided   Application scenario 1. If there are ...

Posted by maltech on Thu, 12 Mar 2020 03:03:03 -0700

Integrating the use of spring boot interceptors and filters

Springboot 1: Interceptor (interceptor) Interceptors in Java are objects that dynamically intercept action calls. It depends on the web framework and the spring MVC framework in spring MVC. It is an application of AOP based on java reflection mechanism in implementation. It acts like a filter, but ...

Posted by AshtrayWaterloo on Thu, 12 Mar 2020 00:09:26 -0700

Talk about collection.Queue

As mentioned before, the main function of collections in Java is to hold other data and implement common data structures. So when we want to use common data structures such as "stack", "Queue", "linked list" and "array", we should think that we can directly use the Collection framework provided by JDK. Fo ...

Posted by lth2h on Mon, 09 Mar 2020 03:32:56 -0700

What is the interface default method

The reason why an interface becomes an interface is that it is not implemented, only declared. But then everything changed. There was a default method in Java and a default method in C ා. Interface is not like the traditional interface, its concept began to approach to abstract class, a pure abstract thing, suddenly appeared entity, so it bega ...

Posted by rodrigocaldeira on Mon, 09 Mar 2020 02:20:47 -0700

Analysis and use of the log related parameters of OpenJDK 11 JVM

OpenJDK 11 is the first long-term support version after OpenJDK 8. This version has changed a lot in JVM log configuration, mainly standardization and unification. In OpenJDK 8, there are many status bits in the log configuration, which is confusing and difficult to maintain and further iterate. In OpenJDK 11, the JVM log related configuration ...

Posted by amyhughes on Sun, 08 Mar 2020 20:56:46 -0700

Getting started with Java - advanced tutorial - 03. Generics

Original address: http://www.work100.net/training/java-generic.htmlMore tutorials: Beam cloud - free course generic paradigm Serial number Chapter in text video 1 Summary - 2 generic method - 3 Generic class - 4 Type wildcard - Please refer to the navigation above for reading 1. overview Java generics is a new feature introduced ...

Posted by cocpg on Sat, 07 Mar 2020 17:29:51 -0800

The second part of JAVA basic learning -- array, string class, set class

Here we undertake Contents of the previous part Let's learn about array, string class and collection class of Java language array 80 Java's array concept is similar to C + +, it should be noted that array is an object One-dimensional array Directly specify the initial value to create an array ...

Posted by joel24 on Sat, 07 Mar 2020 03:20:01 -0800