[single instance mode, multi instance mode, factory mode and enumeration]

1. Single case design mode Function: single instance mode can ensure that there is only one instance of the class applying this mode in the system. That is, an object can only have one instantiated object. Implementation steps 1. Privatize the construction method of the class so that it cannot instantiate the object outside the class th ...

Added by hrichman on Fri, 04 Mar 2022 12:05:41 +0200

Day 10 of learning to use IntelliJ IDEA: Java advanced syntax - multithreading

1, Understanding of programs, processes and threads 1. Program Concept: it is a set of instructions written in a certain language to complete a specific task. Refers to a piece of static code. 2. Process Concept: an execution process of a program, or a running program. Note: as the unit of resource allocation, the system will allocate diff ...

Added by bloodl on Fri, 04 Mar 2022 12:03:33 +0200

Java learning Chapter 5

Video link: https://www.bilibili.com/video/BV1Rx411876f?p=1 Video range P576 - P583 1. Bubble sorting algorithm After each cycle, find the largest data and put it on the far right of the pile of data involved in the comparison. (the biggest bubble)Core: compare the number on the left with the number on the right. When the left > right, ...

Added by herando on Fri, 04 Mar 2022 11:07:40 +0200

[read the Spring source code like this] - go to the container Spring IOC III again

In the last two articles, we have basically analyzed the application examples of XmlBeanFactory. In this chapter, let's analyze ApplicationContext. Big guy skip The first two articles have finished the basic XmlBeanFactory operation examples. Let's talk about ApplicationContext here. As mentioned before, the basic processes of these two thin ...

Added by jrbissell on Fri, 04 Mar 2022 10:05:50 +0200

Using Camunda process engine, about the use of Inclusive Gateway

When using the open source camunda process engine for secondary development, the gateway must be contacted. Camunda's Modeler tool provides four types of gateways: Exclusive Gateway, Parallel Gateway, Inclusive Gateway and event based gateway. Each gateway has its own unique functions. This article will first introduce Parallel Gateway. Incl ...

Added by toms100 on Fri, 04 Mar 2022 08:38:16 +0200

Java image processing

Java image processing This paper introduces the implementation of a simple image processing interface 1. Front end interface production First create the form object JFrame jf=new JFrame(); jf.setSize(640,500); jf.setTitle("Beauty Camera"); jf.setLocationRelativeTo(null); jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); //Set s ...

Added by stangoe on Fri, 04 Mar 2022 08:23:31 +0200

Java violence reflection Relaction

As we all know, singleton mode is often used in writing Java projects, such as creating object-oriented singleton mode, but this mode can be cracked by reflection mechanism. It is called violent reflection here, and multiple objects can be created by decompilation. Here we use the classic hungry man and lazy man for actual combat, And how to av ...

Added by explorer on Fri, 04 Mar 2022 07:48:32 +0200

CGB2202 language foundation day 5

Language foundation day 5: Review: Scanner receives user data: 3 steps in total Branch structure: If... else if structure: multiple pathsswitch... case structure: multiple paths Advantages: high efficiency and clear structure Disadvantages: you can only judge the equality of integers break: jump out of switch Loop: repeatedly execute a ...

Added by bobby4 on Fri, 04 Mar 2022 07:20:50 +0200

Java test questions - data structure test questions

Data structure test questions Here, according to some data structure questions, I share my ideas and source code for you to exchange and learn! All ideas and codes in this article are for reference only. If there is anything wrong, please correct it! The following questions are for reference 1, Return the index of the list as required Exa ...

Added by bolter on Fri, 04 Mar 2022 07:20:43 +0200

Java expression evaluation engine Aviator

Environment: Java8 + aviator5 two point five Introduction to Aviator Aviator is a high-performance and lightweight expression evaluation engine implemented in java language, which is mainly used for dynamic evaluation of various expressions. Now there are many open source java expression evaluation engines available. Why do you need avatar? ...

Added by samvelyano on Fri, 04 Mar 2022 07:11:02 +0200