It's not clear how to object-oriented yet?
This paper mainly introduces the basic idea and three characteristics of object-oriented.
The article was first published under the public slogan Pedestrian View.
1. Introducing Examples
Create a Dog puppy
/**
* Puppies
*/
public class Dog {
String name;
Integer age;
Integer legs;
public void say(String name) {
Sys ...
Posted by ruach on Sat, 13 Jun 2020 20:23:52 +0200
Android uses Kotlin to connect to MQTT
MQTT It is a lightweight and flexible Internet of things message exchange and data transfer protocol, which is dedicated to achieving the balance between flexibility and hardware / network resources for IoT developers.
Kotlin Kotlin is a programming language developed by JetBrains company. Kotlin is based on JVM, so developers can easily use it ...
Posted by RossC0 on Tue, 09 Jun 2020 08:30:15 +0200
[design mode] observer mode: can a registration function also use design mode?
Life in the world is like living among thorns, the heart does not move, people do not move, do not hurt, if the heart is moving, people move, hurt their body, hurt their bones, so we can experience all kinds of pain in the world
catalog
My fighting dream
Sad Xiao Ming
What is the observer model?
Re ...
Posted by mariolopes on Sun, 07 Jun 2020 09:45:53 +0200
GitHub access failed, solution < 2020 / 4 / 21 >
#Include < date: April 21, 2020 articles have been changed and updated to solve your problems more effectively
<----------------------------------------------------------------------------------------------------------------------------------------------> Preface: I don't know what the reason is, GitHub is not very friendly in China ...
Posted by vikela on Mon, 01 Jun 2020 05:38:55 +0200
Google AdMob Advertising Access 2 - In the most plain words, teach you how to make a series.
Still go straight to the subject and join Google AdMob ads.The application advertisement ID is not detailed.This is about the second access method for AdMob advertising.
First, two elements are required.
1. Access SDK
This time using Google's original ad SDK Download Address
Note that you can choose the SDK version you want by clicking on ...
Posted by renegade44 on Tue, 19 May 2020 19:01:58 +0200
Modify DNS server configuration by raspberry pie
Modify profile
1
sudo vim /etc/dhcpcd.conf
Add the following content, we use Google DNS (Beijing Unicom test speed is good)
1
static domain_name_servers=8.8.8.8 8.8.4.4
Complete sample file section
1
2
3
4
interface eth0
static ip_address=192.168.1.3/24
static routers=192.168.1 ...
Posted by mars_rahul on Sun, 03 May 2020 06:41:09 +0200
apk decompilation and AS basic confusion rules
1, Decompilation
Decompress apk with compressed package management software (such as WinRAR, WinZIP, etc.) to get the classes.dex file, and put the file in the dex2jar folder.
Use the dex2 jar tool software to get the corresponding jar files.
(1) Open the command line interface.
(2) Navigate to the directory where d ...
Posted by robtbs on Fri, 01 May 2020 08:04:28 +0200
How to solve repeated commit in pringboot 2.x (practice of local lock)
Have you ever encountered such a situation: the response of the web page is very slow, you find no response after submitting a form, and then you click the submit button crazily (12306 is often so angry). If you have done anti duplicate submission, it's OK, otherwise it's a disaster of what level...
This paper mainly uses custom annotation, sp ...
Posted by abigbluewhale on Wed, 22 Apr 2020 11:22:39 +0200
Nginx Current Limiting Configuration
Current Limiting Algorithm
Token Bucket Tokens are generated at a fixed rate and placed in the token bucket. When the token bucket is full, extra tokens are discarded; requests consume an equal proportion of tokens.When the token is not enough, the request comes and no token is received, and the request is denied service.
Leaky buc ...
Posted by hismightiness on Tue, 21 Apr 2020 02:00:14 +0200
It's amazing that the implementation of Servlet Filter and Spring MVC Interceptor is so simple
Preface
Creation mode: Singleton mode, factory mode, builder mode, prototype mode
Structural type: bridge mode, agent mode, decorator mode, adapter mode, facade mode, combination mode, enjoyment mode
Behavioral: observer mode, template mode, strategy mode, responsibility chain mode, state mode, iterator mode, visitor mode
introduce
In our wor ...
Posted by samyl on Mon, 20 Apr 2020 18:58:08 +0200