Java data structure and algorithm

catalogue Implementation of pre order, middle order and post order search code Binary tree - finds the specified node requirement Code implementation (1) Complete code Operation effect   Binary tree - delete node requirement Finish deleting node code implementation Complete code Operation results Implementation of pre order, ...

Posted on Sun, 05 Dec 2021 02:26:43 -0500 by reag27

GenericServlet principle: Servlet; ServletConfig

What are the disadvantages of writing a Servlet class to directly implement the Servlet interface? service method is the most commonly used method, and other methods do not need to be used in most cases. In this way, other methods appear redundant and the code is ugly.Solution: write a "middleman" to enable the middleman to im ...

Posted on Sun, 05 Dec 2021 02:12:20 -0500 by waylon999

Syntax basis: Keywords final and static

Syntax basis: Keywords final and static final The meaning of final is final and unchanged Modifier variable Once the final variable is initialized, it cannot be modified attribute Assignment can be declared and directly assigned private final string name="zhangsan";, You can also assign values in constructors or non static code ...

Posted on Sun, 05 Dec 2021 01:36:52 -0500 by darthbutternutz

Fundamentals of java syntax

elements of grammar Note: it mainly records the features of Java but not C + + 1. Notes Single line and multiple lines are no different from C + + Document notes: /** *@(Note Title 1) specific content *@(Note Title 2) specific content */ 2. Keywords java can name identifiers in Chinese 3. Data type Like C + +, java is also a strongl ...

Posted on Sun, 05 Dec 2021 01:31:42 -0500 by signs

The Java non Web Springboot project is packaged and deployed to the Linux server (Maven, Gradle)

preface Let's start directly. Non Web project deployment is very simple without complicated configuration 1, Modify pom.xml configuration file Let me take Maven as an example This is the case when my project is started locally. It is the same when the server is started after deployment. Stop it first. Open pom.xml, compare whethe ...

Posted on Sun, 05 Dec 2021 01:27:33 -0500 by meomike2000

jdbc 1.1 what is jdbc,JDBC tutorial, use jdbc to connect to the database for addition, deletion, modification and query. PreparedStatement solves sql injection.

1. Specific contents 1.1 concept JDBC (Java DataBase Connectivity) is a java database connection. In other words, it uses the Java language to operate the database. It turns out that we operate the database by using SQL statements on the console, and JDBC sends SQL statements to the database in Java language. JDBC (Java Data Base Connecti ...

Posted on Sun, 05 Dec 2021 00:40:10 -0500 by empnorton

Full record of dark horse travel website

1, Project import Click maven on the side (if not, you can find it in view - > tool window), click the plus sign, and select the pom.xml document in the file to import First preview the static page Start mode 1: Start mode 2: add a start mode and click the green triangle to start 2, Technology selection web: servlet: front end ...

Posted on Sun, 05 Dec 2021 00:12:40 -0500 by dhorn

Chinese garbled code in configuration file when sending mail in idea

I wrote a test of sending e-mail yesterday First write a simple test: public class TestEmail { public static void main(String[] args) { try{ HtmlEmail email = new HtmlEmail(); //Set the user name and password (authorization password) of the email mailbox email.setAuthentication("user name ","Aut ...

Posted on Sat, 04 Dec 2021 23:16:27 -0500 by Toxinhead

TreeMap of Java collection class source code

brief introduction TreeMap is implemented based on the red black tree. Here we only give a brief introduction to the red black tree. The red black tree is a special binary sort tree. The red black tree does not appear extreme one-sided in the binary sort tree through some restrictions. Compared with the binary sort tree, this naturally imp ...

Posted on Sat, 04 Dec 2021 23:11:20 -0500 by sd9sd

Data structure and algorithm -- search algorithm

catalogue 1, Search algorithm 1.1 classification 2, Linear search (SequenceSearch) 2.1 basic ideas 2.2 implementation of linear search algorithm 3, Binary search 3.1 basic ideas 3.2 implementation of binary search algorithm 4, Interpolation search 4.1 basic ideas 4.2 expected index value formula 4.3 implementation of interpolation s ...

Posted on Sat, 04 Dec 2021 21:56:15 -0500 by jimthunderbird