Introduction to bubble sorting and sorting of two-dimensional arrays
1. Brief introduction of bubble sorting
Bubble Sort, also known as Bubble Sort, is a simple sorting algorithm. It repeatedly visits the columns to be sorted, compares two elements at a time, and exchanges them if they are in the wrong order. The work of visiting a number of columns is repeated until no exchanges are needed, that is, the ...
Posted by coder500 on Mon, 21 Feb 2022 18:38:40 +0100
Beginners use JavaWeb to write one of the most common registration and login pages
It is just a most common registration and login page written by Java Web for beginners. You only need to enter your user name and password
Only part of the java code is listed and explained. The database, configuration process, configuration file and html front-end interface follow their own capabilities
I First use the JDBC utils tool class ...
Posted by Cragsterboy on Sun, 20 Feb 2022 06:46:21 +0100
Servlet quick start
Servlet quick start
Introduction to Servlet
Servlet: short for Server Applet, it is the program (code, function implementation) of the server, which can interactively process the request sent by the client to the server and complete the operation response. Tracing back to the origin, Servlet is a technology of sun company to develop dynamic w ...
Posted by smithmr8 on Wed, 16 Feb 2022 16:03:38 +0100
Create multi project Maven (multi module aggregation project, including java common project and web multi project) in IntelliJ IDEA
catalogue
1. Common java multi project
1.1 create parent project
1.2 creating subprojects
1.2.1 create subproject children1
1.2.2 create subproject children2 and use subproject children1
1.2.3 create subproject children3 and use subproject children2
1.2.4 adding project files
1.2.5 operation items
2. web multi project
2.1 create paren ...
Posted by jwbworks on Sun, 13 Feb 2022 03:11:14 +0100
Login case of Java Web project quick start
The login interface is available for every project, and it is also a small start of a project. How to design the page and the corresponding logic.
1. Interface design
Everyone has different ideas and aesthetics about the interface. This time, we mainly focus on the implementation of login logic. The languages required for interface design inc ...
Posted by lordrain11 on Sat, 12 Feb 2022 01:54:13 +0100
Concurrent file download assistant
Personal project - Concurrent file download assistant
Expected and actual time consumption of each module
PSP2.1Personal Software Process StagesEstimated time (minutes)Actual time (minutes)Planningplan6030· Estimate·Estimate how long this task will take14401080Developmentdevelopment1080· Analysis·Demand analysis (including ...
Posted by SuperCam on Fri, 11 Feb 2022 18:33:53 +0100
Mybatis quick start
mybatis
Dependency used (gradle)
//mybatis dependency
compile group: 'org.mybatis', name: 'mybatis', version: '3.5.6'
// mysql
compile group: 'mysql', name: 'mysql-connector-java', version: '8.0.22'
// mybatis paging plug-in
compile group: 'com.github.pagehelper', name: 'pagehelper', version: '5.2.0'
Interface class
{ ...
Posted by Nicksta on Sun, 06 Feb 2022 18:49:07 +0100
Local method stack, heap of JVM memory structure
3. Local Method Stack
The local method stack is java The virtual machine needs to provide memory space for some local methods when they are called, which refers to those that are not java How to write code, because
Ours java Code has some limitations, it sometimes can't deal directly with the bottom level of our operating system, so it need ...
Posted by Patrick3002 on Fri, 04 Feb 2022 18:28:02 +0100
[MyBatis Plus 3.5.1] 2. CRUD extension: automatic filling, optimistic locking, paging query, logical deletion [Spring Boot environment]
1,Insert
1) Insert test
@Test
void testInsert(){
User user = new User();
user.setName("tuwer");
user.setAge(8);
user.setEmail("abc@qq.com");
// id will be generated automatically
int res = userMapper.insert(user);
System.out.println(res);
System.out.println(user);
}
2) Primary key policy
@TableId
...
Posted by poirot on Fri, 04 Feb 2022 12:45:53 +0100
Understanding JDBC technology is enough to read this article
1. Introduction to JDBC
1. What is JDBC?
2.JDBC writing steps
2. How to Get Database Connections
Preparations: 1. Create a new lib folder under the project 2. Import the jar package into the lib directory 3. Add the imported jar package to the project through Add as library 4. Create related packages and test classes 5. Create ...
Posted by porto88 on Thu, 03 Feb 2022 18:48:20 +0100