[C + + learning] IO Library

Part II C + + standard library The core of the standard library is many container classes and a family of generic algorithms. These facilities can help us write concise and efficient programs. The standard library will pay attention to the details of bookkeeping operations, especially memory management, so that our programs can devote all thei ...

Posted by clodagh2000 on Mon, 29 Nov 2021 20:56:48 -0800

APACHE KAFKA quick start

1. Obtain Kafka download Latest version, unzip $ tar -xzf kafka_2.13-3.0.0.tgz $ cd kafka_2.13-3.0.0 2. Start Kafka environment Run the following command in order to start the services correctly in order # Start the ZooKeeper service # Note: Soon, ZooKeeper will no longer be required by Apache Kafka. $ bin/zookeeper-server-start.sh co ...

Posted by tcorbeil on Fri, 26 Nov 2021 15:35:08 -0800

Java source code reading notes - stream

Java source code reading notes - stream Why learn stream In Java programming, ArrayList is estimated to be one of the most commonly used classes, which is used as an array in daily life. For array operations, traversal, data filtering, data modification and other operations will be involved. The simplest of these operations is for loop traver ...

Posted by deljhp on Sat, 06 Nov 2021 12:10:47 -0700

New features of java8 - use of stream API

Operation steps of Stream 1. Create a Stream Get a stream through a data source (such as a collection or array) 2. Intermediate operation Intermediate operation chain: operate the data of the data source 3. Terminate the operation Execute the intermediate operation chain and produce results Create Stream 1. You can use the stream() or pa ...

Posted by shan169 on Wed, 13 Oct 2021 20:53:27 -0700

Super detailed explanation of java8 stream API!

First post a few cases. Students with high level can challenge: Select employees with salary greater than 8000 from the employee set and place them in a new set.Count the sum of the maximum salary, average salary and salary of employees.Employees are ranked from high to low in salary, and the younger ones are the first.Classify employees by ...

Posted by northcave on Wed, 13 Oct 2021 17:04:40 -0700