Big data Java foundation DAY19 - collection (generic, enhanced for traversal, static import, collection nesting)
catalogue
Overview and use of generics
Why are there generics?
Generic statement definition format
Benefits of generics
Generic application
Generic class
generic method
generic interface
Generic advanced (wildcard)
Overview and use of enhanced for
Enhanced for Overview
Enhanced for recycling
Overview and use of static impo ...
Added by mitjakac on Wed, 16 Feb 2022 15:38:57 +0200
Spring boot integrates Redis cache
1, Cache conceptual knowledge
1. What cache is it
The word Cache is often heard in daily life. What is Cache? In fact, Cache is the buffer of data exchange (called Cache), which is the place where data (frequently used data) is temporarily stored. When users query data, they first look for it in the Cache. If they find it, they will execu ...
Added by friendlylad on Wed, 16 Feb 2022 14:25:52 +0200
Java collection framework (Map)
Map collection
Features of Map interface
Used to store any key value pairKey: no repetition, no subscriptValue: unordered, no subscript, duplicate allowed Common methods of Map interface
V get(Object key): returns the value corresponding to the specified key object in the Map set. V indicates the data type of the valueV put(K key, V va ...
Added by mattotto77 on Wed, 16 Feb 2022 14:15:28 +0200
Spring MVC parsing Controller annotation
In the previous article, I introduced the DispatcherServlet, the core component of Spring MVC. DispatcherServlet connects the requests in the Servlet container (such as Tomcat) with the components in Spring and is the hub of Spring web applications. However, in our daily development, we often do not need to know the role of the hub in detail. W ...
Added by pellky on Wed, 16 Feb 2022 11:27:33 +0200
JAVA foundation 05 - object oriented
preface
This article is compiled from the notes in the process of personal learning and review, which is suitable for readers to get started and review quickly.
1, Classes and objects
Class 1.1
A class is a class. A class creation object is our commonly used new object
1.2 reference type
In addition to the eight basic types of dat ...
Added by xwhitchx on Wed, 16 Feb 2022 10:13:50 +0200
Lock free multithreading -- a class of atomic related atoms
preface
java.util.concurrent.atomic also provides some concurrency tool classes, which are divided into five categories:
Update base types atomically
AtomicInteger: integer atomic classAtomicLong: long integer atomic classAtomicBoolean: Boolean atomic class Atomic referenceAtomic arrayField UpdaterAtomic accumulator
1. Atomic integer
Tak ...
Added by it2051229 on Wed, 16 Feb 2022 09:59:20 +0200
list object de duplication and de duplication according to object attributes. Big guy is awesome. Record it
Eight methods of List collection object de duplication and attribute de duplication - Fage talk Java - blog Garden
1, Outline of this paper
In this article, I want to write about eight methods of de duplication of List set elements. In fact, through flexible application, arrangement and combination, there are not necessarily eight, but there ...
Added by ronthu on Wed, 16 Feb 2022 09:35:30 +0200
Third set of arrays
Basic concept and function of array
java array stores a group of data with the same data type. The space in memory is continuous. Once the length is given, it cannot be changed
Arrays are reference data types (objects), but they can store basic types or reference types
Array creation
Declaration array
Int means that the data type that can ...
Added by Tjk on Wed, 16 Feb 2022 09:12:55 +0200
Single machine learning request
Request de duplication
This is a high-frequency interview question for reptile post:
Q: How does the sweep remove duplicate requests? What is the de duplication principle? How does the request calculate uniqueness?
With this question, enter today's theme.
DUPEFILTER_CLASS
In the scene project configuration, DUPEFILTER_CLASS is the setting ...
Added by rmbarnes82 on Wed, 16 Feb 2022 07:36:05 +0200
LeetCode 540. Single element in ordered array (dichotomy + XOR technique) / 1380 Lucky number in matrix / 1719 Number of schemes to reconstruct a tree
540. A single element in an ordered array
2022.2.14 one question per day
Title Description
Give you an ordered array of integers, where each element will appear twice and only one number will appear once.
Please find and return the number that appears only once.
The solution you design must meet O(log n) time complexity and O(1) space comp ...
Added by mrwutang on Wed, 16 Feb 2022 07:10:49 +0200