IO stream in Java
The following are my notes on watching the Java learning video of shangsilicon valley
Use of File class
java.io.File class: the abstract representation of file and file directory path, which is platform independentFile can create, delete and rename files and directories, but file cannot access the file content itself. If you need to access ...
Posted by clandestine555 on Tue, 01 Feb 2022 04:06:42 +0100
Personal online learning website (Chapter II back-end architecture improvement and interface development)
Integrated persistence layer framework Mybatis
Integrated Mybatis Introduce dependency <!-- integrate mybatis-->
<dependency>
<groupId>org.mybatis.spring.boot</groupId>
<artifactId>mybatis-spring-boot-starter</artifactId>
<version>2.1.3</version> ...
Posted by bqheath on Tue, 01 Feb 2022 03:18:38 +0100
First knowledge of distributed lock: analysis of ZooKeeper distributed lock principle and practical case
First knowledge of distributed lock (II): analysis of ZooKeeper distributed lock principle and practical cases
It's not easy to write. Praise and collect attention so that you can see it next time. Thank you for your support ~
Last time we talked about using Mysql database to realize distributed locking. It is relatively simple to implem ...
Posted by mattvenables on Tue, 01 Feb 2022 01:27:39 +0100
C language minesweeping
C language minesweeping
The code implementation of mine sweeping is similar to that of Sanzi chess. The main difference lies in the implementation of game code
Divided into three files to write test c ,game.h ,game.c
test.c: Used to implement the overall framework and test code
game.h: Used for symbol definition, function declaration an ...
Posted by Catfish on Tue, 01 Feb 2022 00:40:15 +0100
C + + learning notes
C + + learning notes
quote 📖
1. Definition of reference
int a = 3;
int &r = a; // In this case, it is called r reference a, and r is the alias of A
Note: after initializing the reference, it cannot be modified
int b = 4;
r = b; //At this time, it is only equivalent to assigning the value of b to a;
2. Function of reference
...
Posted by gufmn on Mon, 31 Jan 2022 22:10:15 +0100
[C + + from 0 to 1] Part 5: classes and objects
1, On constructor
1.1 constructor body assignment
When creating an object, the compiler calls the constructor to give each member variable in the object an appropriate initial value
class Date
{
public:
Date(int year, int month, int day)
{
_year = year;
_month = month;
_day = day;
}
private:
int _year;
int _month;
...
Posted by NewBob on Mon, 31 Jan 2022 18:11:52 +0100
Object oriented part of java big data development (package 1)
1. Classes and objects
1.1 what is the object?
Everything is an object, and everything that exists objectively is an object
1.2 what is object-oriented?
The action of paying attention to objects is called object-oriented
For example, I'm going to the supermarket to buy fruit. Fruit is an object. I pay attention to its type, size, acidity a ...
Posted by fifin04 on Mon, 31 Jan 2022 17:27:15 +0100
Java object oriented exercises
Knowledge points
object-oriented
Topic 1 (training)
Define the mobile phone class. The mobile phone has three attributes: brand, price and color. It has two functions: call() and sendMessage().
Please define the mobile phone class. There should be empty parameters, parameter construction methods and set/get methods in the class.
Define the ...
Posted by virken on Mon, 31 Jan 2022 17:00:01 +0100
SpringBoot realizes Guangzhou healthpass vaccine appointment reminder
1, Foreword
Finally, when it's time to get the second shot of vaccine, I have no choice but to open the "Guangzhou Health Link" or "Guangdong Health Link" applet every time. Every time, I am booked. Guangzhou has a large population. Maybe many people have been waiting for the number in front of the applet, so this article w ...
Posted by steveswt on Mon, 31 Jan 2022 13:14:55 +0100
C + + class and object polymorphism object-oriented programming
https://www.bilibili.com/video/BV1et411b73Z?p=135https://www.bilibili.com/video/BV1et411b73Z?p=135 Polymorphism is one of the three characteristics of C + + object-oriented
Polymorphisms fall into two categories:
Static polymorphism: function overloading and operator overloading belong to static polymorphism and reuse function names
Dynamic ...
Posted by birdie on Mon, 31 Jan 2022 11:43:30 +0100