[design mode] simple factory mode

Wechat search: Menon StayUp Home address: https://gozhuyinglong.github.io Source code sharing: https://github.com/gozhuyinglong/blog-demos Simple Factory Pattern is a simple implementation of factory pattern. It belongs to creation pattern. There is only one "factory" class in the Simple Factory Pattern, which can create diffe ...

Posted by foyer on Mon, 14 Feb 2022 02:03:05 +0100

Understand the decorator mode

When learning the classic design pattern, the decorator pattern is really a headache, but it is not difficult to realize after mastering its basic idea. First of all, the decorator has told us two basic information Something to be decorated can be seen as a coreThings with decoration can be regarded as different properties or functions It' ...

Posted by jamesnkk on Sun, 13 Feb 2022 21:30:55 +0100

MySQL Learning Notes 3 - JDBC

Introduction to JDBC Java Database Connectivity (JDBC) is an application interface in the Java language that specifies how client programs access the database, providing methods such as querying and updating data in the database. Database Driver What is a database driver? Similar to sound card driver, graphics card driver Our programs ar ...

Posted by kc5tvd on Sun, 13 Feb 2022 20:11:53 +0100

One dimension array of NOI / 1.6 programming basics (incomplete)

01: Number of identical numbers as specified OpenJudge - 01: Number of identical numbers as specifiedhttp://noi.openjudge.cn/ch0106/01/ describe Outputs the number of identical numbers in a sequence of integers as specified. Code public static void main(String[] args) { Scanner scanner = new Scanner(System.in); //The first behavior, a, ...

Posted by breckenridge on Sun, 13 Feb 2022 19:32:54 +0100

Java Stream, File, and IO

Java Stream, File, and IO Java Stream, File, and IO Java. The IO package contains almost all the classes needed to operate on inputs and outputs All these stream class stream classes represent input sources and output destinations Java. Streams in io packages support many formats Examples include basic types, objects, localized characte ...

Posted by tranzparency on Sun, 13 Feb 2022 19:18:14 +0100

Student Management System (ArrayList Simple Edition)

Student Management System (ArrayList Simple Edition) Ideas for Implementing Student Management System (1) Defining student classes (2) Coding of the main interface (3) Code writing for adding students (4) View students'code writing Delete student code writing Modify students'code writing Solve the problem of adding duplicate student num ...

Posted by cachemony on Sun, 13 Feb 2022 19:00:03 +0100

Web-wide most detailed Java implementation of single-chain list (add, delete, change, check, traverse, etc.)

Web-wide most detailed Java implementation of single-chain list (add, delete, change, check, traverse, etc.) Take the student management system as an example: the node is the student, and the whole chain table is the management system Node Definition, Constructor The student class has information such as number, name, subscript, etc. By defa ...

Posted by marting on Sun, 13 Feb 2022 18:42:11 +0100

Using SA token to solve WebSocket handshake authentication

preface Compared with the single communication mode of Http, WebSocket can actively push messages from the server to the browser. This feature can help us complete some specific services such as order message push, IM real-time chat and so on. However, WebSocket itself does not provide direct support for "identity authentication", a ...

Posted by dhiren22 on Sun, 13 Feb 2022 17:40:39 +0100

Java Basics - basic types

New JAVA java learning starts with basic types, which are often used in daily work. But are you sure you have mastered the basic types of knowledge? Let's take a look at the next few questions 1,boolean What is the length of the type? 2,void Is it a basic type? 3,int i=0; Integer j=i;In this boxing process, how is the basic type assigned ...

Posted by Volte on Sun, 13 Feb 2022 16:10:28 +0100

rabbitmq simple introduction

1, rabbitMq concept rabbitMq is a message oriented middleware that receives and uses messages for third parties. Just like express delivery, merchants are producers, express stations are MQ, and users are consumers. 2, Why rabbitMq decoupling For example, system A of the company needs to push data to other different systems. In this way ...

Posted by monkeynote on Sun, 13 Feb 2022 15:40:08 +0100