ArrayList cannot add, delete or modify elements with foreach
1, Fail fast
When traversing a collection object with an iterator, if the contents of the collection object are modified (added, deleted, modified) during the traversal, an exception will be thrown ConcurrentModificationException.
one ️⃣ Principle: the iterator directly accesses the contents of the collection during traversal, and uses a mod ...
Added by anhedonia on Tue, 15 Feb 2022 07:36:43 +0200
Share several practical embedded C programs
1. Hexadecimal character to integer number
Function: convert hexadecimal string to hexadecimal number. I didn't find the corresponding library function, so I wrote a function manually with reference to the online code.
The commonly used functions are ATOI and Atol, which convert decimal digit strings into int or long types, so they are not ap ...
Added by Mark W on Tue, 15 Feb 2022 07:34:59 +0200
Basic operation of C language function
Article catalogue
preface 1, What is a function? 2, Function classification and call 1. Nested call of user-defined functions 2. Chain access of user-defined functions 3. Recursive call of user-defined functions (key points) summary
preface
This paper introduces the basic knowledge of C language functions, including function c ...
Added by Right Wing Liberal on Tue, 15 Feb 2022 07:31:47 +0200
Logic implementation of coffee detail page of Hongmeng Ruixing coffee development diary
Let's first look at the overall effect
1. Logical induction
In fact, there is not much logic to develop in the coffee details page, and it is not easy to write it down as a whole. The logic to be realized is summarized as follows:
The name of the coffee details page is obtained after the previous Slice is passedWhen the temperature ...
Added by getmizanur on Tue, 15 Feb 2022 07:16:53 +0200
ch2 setting API -- creating distributed applications using go gin
Catalogue of series articles
Chapter I gin preliminary understanding Chapter 2 setting API
Note:
The series of articles are learning notes corresponding to the original English books mentioned aboveRelated to their own practice code, including comments, on my gitee Welcome, starAll contents are allowed to be reproduced. If the cop ...
Added by dandare on Tue, 15 Feb 2022 07:09:28 +0200
zookeeper -- zk implementing distributed lock
Reasons for locking:
Multitasking to grab a resourceMultitasking requires writing to resourcesMultitasking access to resources is mutually exclusive
1. What happens when you are multithreaded without using locks
Define a generated order ID class, that is, a resource for multitasking
public class OrderNumGenerator {
//Global order id
...
Added by jason213123 on Tue, 15 Feb 2022 07:07:12 +0200
🎉 DTM distributed transaction manager PHP collaboration client v0 1 beta release!!!
github.com/dtm-php/dtm-client
introduce
dtm/dtm-client Is a distributed transaction manager DTM The PHP client of has supported the distributed transaction mode of TCC mode, Saga mode and two-stage message mode, and has realized the communication with DTM Server by HTTP protocol or gRPC protocol respectively. The client can run safely in the e ...
Added by surreal5335 on Tue, 15 Feb 2022 06:35:55 +0200
[Rust Web Rokcet Series 2] connect the database and CURD for addition, deletion, modification and query
Rust Web Rokcet Series 2 connection database and CURD addition, deletion, modification and query
Original text: https://www.ftls.xyz/posts/rust-rocket2/ Author: macabing sugar
Serial address: https://blog-kkbt.vercel.app/series/rust-web-rokcet/
sqlite database is used. In fact, all kinds of databases are similar. There are already many packa ...
Added by beboo002 on Tue, 15 Feb 2022 06:28:08 +0200
🎉 DTM distributed transaction manager PHP collaboration client v0 1 beta release!!!
https://github.com/dtm-php/dt...introducedtm/dtm-client Is a distributed transaction manager DTM The PHP client of has supported the distributed transaction mode of TCC mode, Saga mode and two-stage message mode, and has realized the communication with DTM Server by HTTP protocol or gRPC protocol respectively. The client can run safely in the e ...
Added by shawnyoung on Tue, 15 Feb 2022 06:26:10 +0200
Simple introduction to oracle (comprehensive)
oracle simple introduction
oracle concept
oracle is a relational database. It has a large database. The large database is composed of one or more instances. Each instance is composed of background processes and logical data. Multiple table spaces and multiple users can be created under one instance. Each user has a default table space, and ...
Added by dmikester1 on Tue, 15 Feb 2022 06:08:19 +0200