Little ginger's java

java Validate palindrome string Validate palindrome string. Write a program to verify whether a string is a palindrome string: whether to read it from the front and read it from the back are the same. For example, mom and dad are palindromes. The program receives the string input by the user, determines whether it is a palindrome string, and ...

Added by stakes on Fri, 18 Feb 2022 21:25:27 +0200

Cute new reptiles are so happy

Target: 51job Don't ask me why I climb this, because my technical ability is limited. Very limited. Very limited. 1. Let's see what useful information this website has first. Area, it must be necessary. Where else can I find a job. Why are you looking for a job? What do you say. Directly climb more than 50000, manual funny. Total page ...

Added by rvdb86 on Fri, 18 Feb 2022 20:58:45 +0200

Hand Tear Heap Sorting--Java Code Implementation

1. Introduction to heap sorting Heap sorting is a sort algorithm designed with heap as the data structure. Heap sorting is an optional sort with the worst, best, and average time complexity of O(nlogn), which is also an unstable sort. Large Top heap and Small Top heap A heap is a complete binary tree with the following properties: Each ...

Added by jeff_lawik on Fri, 18 Feb 2022 20:52:34 +0200

Multiple data sources under spring mybatis

#Multiple data sources under spring mybatis Recently, I encountered the requirement optimization of separation of reading and writing in the project. Here I just record the implementation process, problems and some extensions (smart like me). The implementation method is some public schemes: * * overriding datalookcurrentdetail1 * * 2. Switc ...

Added by danman252 on Fri, 18 Feb 2022 19:44:56 +0200

Flight information management system (JDBC)

Flight information management system Now, in order to improve the user experience, an airline hopes to build a flight information system, and users can operate the flight information according to their needs. The team leader assigned this task to programmer Zhao Dan. Zhao Dan found that the database needs to be operated through Java code, ...

Added by johnbest on Fri, 18 Feb 2022 19:15:52 +0200

Thread 2 (the 22nd day of learning Java) (waiting for wake-up mechanism, thread pool, Timer timer)

catalogue I Wait for wake-up mechanism II Thread pool III Timer timer I Wait for wake-up mechanism Wait for wake-up mechanism This is a collaboration mechanism between multiple threads. Just like you and your colleagues in the company, you may have competition for promotion, but more often you work together to complete certain tasks. A ...

Added by luitron on Fri, 18 Feb 2022 19:08:29 +0200

Serialization of Lambda expression and ingenious use of SerializedLambda in JDK

premise In my spare time after work, I think about writing a set of lightweight ORM framework based on JDBC with Javassist as the core, and studying the source code of mybatis, TK mapper, mybatis plus and spring boot starter JDBC, It is found that LambdaQueryWrapper in mybatis-plus can get the method information (actually CallSite informatio ...

Added by epicalex on Fri, 18 Feb 2022 18:21:35 +0200

[design pattern learning] summary of several common design patterns

1, Introduction Software Design Pattern, also known as design pattern, is a summary of code design experience that is repeatedly used, known by most people, classified and catalogued. It describes some recurring problems in the process of software design and the solutions to the problems. In other words, it is a series of routines to solve ...

Added by bhogg on Fri, 18 Feb 2022 18:12:59 +0200

Difference between ReentranLock and Synchronized

ReentranLock Lock interface is a built-in attribute, not built-in in java language. It can realize synchronous access ReentranLock is the implementation class of Lock interface After java SE 5, a Lock interface (and related implementation classes) is added to implement the Lock function However, it is used to acquire and release locks expl ...

Added by AtomicRax on Fri, 18 Feb 2022 18:08:16 +0200

Java multithreading series - thread communication mechanism wait notify notifyAll(03)

Thread communication mechanism wait notify notify all In this class, we mainly learn the precautions for using the wait/notify/notifyAll method. We mainly start with three questions: Why must the wait method be used in synchronized protected synchronization code?Why is wait/notify/notifyAll defined in the Object class and sleep defined in th ...

Added by first_lady_the_queen on Fri, 18 Feb 2022 17:54:13 +0200