on java 8 learning notes 2022.2.17-2022.2.18
2022.2.17
problem
As you will see in Chapter 8, when inheritance is introduced, the class (subclass) derived from inheritance can access the protected members of the parent class and the public members (but not the private members). Only when two classes are in the same package can it access the package access members of the parent c ...
Posted by suncore on Fri, 18 Feb 2022 21:30:29 +0100
Introduction to the basics of Kotlin language: Lambda expression
What is a Lambda expression?Lambda expressions are actually anonymous functions. In fact, a function is a function. An anonymous function is an anonymous function code. In Kotlin, function also appears as a type. Although in the current version, the flexibility of function type is not as flexible as Python, it can also be assigned and passed, w ...
Posted by Tjorriemorrie on Fri, 18 Feb 2022 21:28:01 +0100
Unix/Linux socket collation -- address structure
preface
Students who have read UNIX network programming know that this book introduces all aspects of sockets in detail, and gives each structure Implementation code file of system API. However, with the continuous development of technology, the kernel of the operating system is constantly updated. The book describes the relevant address struc ...
Posted by lilywong on Fri, 18 Feb 2022 21:23:57 +0100
Shortest path problem
Shortest path problem
Sequence: shortest path problem: find the weight and minimum path length from one point to another in the graph. (the following n indicates the number of points and m indicates the number of sides)
I Naive dijkstra algorithm
Principle: dijkstra algorithm is based on breadth first search and expands each poin ...
Posted by oddyseys on Fri, 18 Feb 2022 21:17:43 +0100
How does the Spring source code solve the cyclic dependency of beans
First of all, we need to understand that spring supports circular dependency only when the scop is a single instance bean. Beans with a scope of prototype type are not supported. A new instance will be created every time it is called. Spring will first instantiate various attribute dependencies of the bean when instantiating the bean. If testa ...
Posted by yelvington on Fri, 18 Feb 2022 20:58:07 +0100
Learn WEB front end from scratch - advanced WEB page - HTML5+CSS3
๐ Project introduction
First introduce yourself. I'm a back-end programmer who doesn't write the front-end, so I teach myself the front-end ๐. In this project, I will work with you to learn the front-end from the zero foundation. From the perspective of back-end programmers, the front-end is limited by the author's level. This project will ...
Posted by AKA Panama Jack on Fri, 18 Feb 2022 20:54:49 +0100
[algorithm sorting] LCS, LIS, LCIS, K_LCS,K_LIS,K_LCIS
*** Code analysis has not been done yet. It needs to be supplemented if necessary. Please specify the contents that need to be supplemented in the comment area.
ย
LCS | longest common subsequence
Problem descriptionGiven two strings A and B with lengths of N and M respectively, find the longest string length of both A subsequence ...
Posted by phoolster on Fri, 18 Feb 2022 20:52:27 +0100
Android APP_ Control - Notification notification
From: Android APP_ Control (6) -- Notification notification Author: and pursung Release time: 2021-04-02 00:30:14 website: https://blog.csdn.net/weixin_44742824/article/details/115382674
Effect list
Implementation effect: click send notification, and the system sends a notification; You can jump to view through the ...
Posted by stereofrog on Fri, 18 Feb 2022 20:40:58 +0100
Explanation 4 of common sensors -- water sensor
Explanation of common sensors IV - water sensor
Specific explanation
The sensor operates by using a series of five bare wires connected to system ground. Insert one sensing trace, five grounding traces and a total of five sensing traces alternately between each two grounding traces. The sense cable is connected to a 1 megohm pull-up resisto ...
Posted by silverglade on Fri, 18 Feb 2022 20:24:45 +0100
Design mode_ 07 builder mode
7. Builder mode
7.1 general
Separate the construction and representation of a complex object, so that the same construction process can create different objects.
7.2 structure
Abstract Builder: this interface specifies the creation of those parts of complex objects, and does not involve the creation of specific object parts. Concrete B ...
Posted by df75douglas on Fri, 18 Feb 2022 20:16:54 +0100