Definition and application of array

1. Basic usage of array 1.1 what is an array 1.2 creating arrays 1.3 use of arrays 2. Array as parameter of method 2.1 basic usage 2.2 understanding reference types 2.3 understanding 3. Array as the return value of the method 4. Two dimensional array 1. Basic usage of array 1.1 what is an array If you need to represent two data, ...

Posted by l!m!t on Wed, 27 Oct 2021 22:02:40 -0700

Fundamentals of Java language (array) (recursive)

1. Array overview and definition format description 1. Why is there an array      Now you need to make statistics on the salary of employees in a company, such as calculating the average salary, finding the maximum salary, etc. Assuming that the company has 80 employees,      Using the knowledge learned above ...

Posted by antisback on Wed, 27 Oct 2021 20:15:01 -0700

Destroyorringbuffer multi producer write

Previous chapter This chapter mainly introduces how a single producer writes data to RingBuffer data, how not to make rings overlap, notify consumers after writing, batch processing at one end of the producer, and how multiple producers work together. This chapter mainly introduces how multiple producers write data to RingBuffer data. 1. The M ...

Posted by Beans on Wed, 27 Oct 2021 20:06:08 -0700

Analysis of agent model

1 from static agent to dynamic agent For example, some people will be urged to marry by their parents when they reach the marriageable age. Now, under various pressures, many people choose to marry and have children later. So anxious parents began to date their children everywhere, more anxious than their children themselves. Let's look at the ...

Posted by phpbeginer on Wed, 27 Oct 2021 20:06:25 -0700

Class loader & Reflection & modularization

1. Class loader 1.1 class loading [understanding] Description of class loading When a program wants to use a class, if the class has not been loaded into memory, the system will initialize the class through three steps: class loading, class connection and class initialization. If there are no accidents, the JVM will complete these three st ...

Posted by GooberDLX on Wed, 27 Oct 2021 19:58:42 -0700

DisruptorRingBuffer single producer write

The previous chapter mainly introduces how consumers read data from RingBuffer. This chapter mainly introduces how a single producer writes data to RingBuffer. How to avoid overlapping rings in the process of RingBuffer data writing, notify consumers after writing, batch processing at the producer side, and how multiple producers work together. ...

Posted by The-Last-Escape on Wed, 27 Oct 2021 19:48:18 -0700

Java19 -- Collection 1 (Collection+List+ArrayList+LinkedList)

1 Collection interface 1.1 general The English name Collection is the data structure used to store objects. The length is variable, and different types of objects can be stored in the Collection. It also provides a set of methods to operate batch objects. Disadvantages of array: the length is fixed, the access mode is single, and the ope ...

Posted by robocop on Wed, 27 Oct 2021 19:26:22 -0700

Android advanced decryption reading notes -- the startup process of four components

Startup process of root Activity There are two types of Activity startup: one is the startup process of root Activity, and the other is the startup process of ordinary Activity. Root Activity refers to the first Activity started by the application, so the startup process of root Activity can also be understood as the startup process of the app ...

Posted by digitalflash on Wed, 27 Oct 2021 16:06:02 -0700

[ ☕ Java) Talking about the Definition and Use of Java Array

💜 Write before 💜 Preface This blog focuses on the following points 1. Understand the basic concepts of arrays 2. Master the basic usage of arrays 3. Array and method interoperability 4. Familiar with array-related common problems and codes~ 🎄 Array Basic Usage 🎅 What is an array Arrays essentially allow us to "batch ...

Posted by emmbec on Wed, 27 Oct 2021 10:14:27 -0700

Java Concurrent Programming JUC: CyclicBarrier thread synchronization

java.util.concurrent.CyclicBarrier provides a synchronization mechanism for multiple threads to wait for each other. It can be understood as an obstacle. All threads that reach the obstacle first will be in a waiting state. All threads can continue to execute until all threads reach the obstacle. For example, the synchronization mode of Cyc ...

Posted by farkewie on Wed, 27 Oct 2021 08:52:27 -0700