[C + +] object oriented -- class and object

*** Class definitions and class members Define a class: class Box { private: double length; // Length of a box double breadth; // Breadth of a box double height; // Height of a box public: double getArea(); }; The defined class has the following properties: class name, class members (including da ...

Posted by Joel.DNSVault on Sat, 19 Feb 2022 17:35:19 +0100

About concurrent HashMap from java7 to java8

Why use concurrenthashmap (the disadvantage of HashMap) HashMap is the most commonly used Map class in Java. It has good performance and fast speed, but it can not guarantee thread safety. It can use null value as Key/value The thread insecurity of HashMap is mainly reflected in the dead loop when resizing and fast fail when using iterator In ...

Posted by McJepp on Sat, 19 Feb 2022 17:22:12 +0100

Learn SpringBoot--ch06- interface architecture style RESTful

Interface: API (Application Programming Interface) refers to some pre-defined interfaces (such as function and HTTP interface), or refers to the Convention for the connection of different components of the software system. It is used to provide a set of routines that can be accessed by applications and developers based on some software or h ...

Posted by renegade44 on Sat, 19 Feb 2022 17:19:55 +0100

[30] fundamentals of Java IO application in Android

(1) As long as a person doesn't give up himself, the whole world won't give up you (2) I was born to be of great use (3) If you can't bear the pain of learning, you must bear the pain of life. This is a painful and profound understanding (4) Hard work pays off (5) Spirit is the real blade (6) Defeat your opponent twice, the first in your heart ...

Posted by BittenApple on Sat, 19 Feb 2022 17:15:51 +0100

Kubernetes first bullet - Nanny level installation tutorial

Kubernetes, abbreviated as K8s, is an abbreviation of 8 characters instead of "ubernet". Kubernetes is an open source application for managing containerized applications on multiple hosts in the cloud platform. Kubernetes aims to make the deployment of containerized applications simple and efficient. Kubernetes provides a mechanism fo ...

Posted by cosmoparty on Sat, 19 Feb 2022 17:14:15 +0100

First reptile experience sharing - full version

Reptile experience sharing The teacher's requirements are as follows 1. Find a web page News link: https://sports.sina.com.cn sina sports sina sports sina sports Forever god!!!!! Why did you choose a certain wave web page? Of course, it is the result of many attempts, which made you climb many web pages, but many of them either have problem ...

Posted by packland on Sat, 19 Feb 2022 17:14:17 +0100

Section 13: simplify your code with Lombok

[TOC]In the development process, a large number of JavaBean s are usually defined, and then the constructor, getter, setter, equals, hashcode and toString methods of their properties are generated through the IDE. When adding properties or changing a property, such as naming and type, these methods mentioned above need to be regenerated. Such r ...

Posted by slushpuppie on Sat, 19 Feb 2022 17:11:18 +0100

Use Stream API to optimize Java code!

The new features of Java 8 are mainly Lambda expressions and streams. When streams and Lambda expressions are used together, the characteristics of stream declarative processing of data sets can make the code concise and easy to readHow to simplify the codeIf there is a demand, you need to process the dishes queried in the database:Select dishe ...

Posted by zvonko on Sat, 19 Feb 2022 17:11:52 +0100

Data processing algorithm_ 2015 dataset

background Download address: https://rrc.cvc.uab.es/?ch=4&com=downloads Note: this data is open source data, but you need to register an account. You can download it simply by registering; Introduction: it is used for text detection task. The data includes 1000 training samples and 500 test samples; Required data display Firstly, the d ...

Posted by basdog22 on Sat, 19 Feb 2022 16:57:28 +0100

C language programming rookie exercise 100 questions (01-10)

[exercise 1] output "Hello, World!" 0. Title: Output "Hello, World!"1. Analysis: Use printf() to output "Hello, World!".2. Procedure: #include <stdio.h> int main() { printf("Hello, World!"); // Double quotes are required before and after the string in printf() return 0; } 3. Input and output: ...

Posted by Diceman on Sat, 19 Feb 2022 16:56:52 +0100