[jsp] basic knowledge summary
1._JSP
1.1._ What is JSP
JSP (Java Server Pages) is a dynamic resource on the Java Web server side. It plays the same role as HTML pages, displaying data and obtaining data.
1.2._jsp composition
JSP = HTML + Javascript + JSP action tag (including EL expression)
1.3._jsp script
It's essentially Java code snippets
Classificatio ...
Posted by Residue on Sat, 30 Oct 2021 23:57:51 -0700
Synchronized brief introduction to "usage"
Two uses of Synchronized
Object lock
It includes method lock (the default lock object is this, that is, the current instance object) and synchronous code block lock (specify the lock object yourself)
Class lock
A Synchronized method that modifies a static or specifies a lock as a Class object
Example
No synchronization effect
public clas ...
Posted by mike_y on Sat, 30 Oct 2021 23:11:35 -0700
Java - time complexity and space complexity
The time complexity and space complexity of common sorting algorithms are as follows:
1. Algorithm efficiency
There are two kinds of algorithm efficiency analysis: The first is time efficiency and the second is space efficiency. Time efficiency is called time complexity, and space efficiency is called space complexity. Time complexity mainly ...
Posted by seavers on Sat, 30 Oct 2021 22:24:54 -0700
Explanation of IO,NIO and AIO of IO stream
catalogue1 IO,NIO,AIO1.1 basic concepts1.2 NIO details1.2.1 Buffer read / write data1.2.2 Buffer and clear methods1.2.3 Buffer parameters1.2.4 scattering & aggregation1.3 Java AIO1.4 use examples1.4.1 scattering aggregation1.4.2 comparison test of three I / O modes1.4.3 DirectBuffer VS ByteBuffer1.4.4 monitoring code for DirectBuffer1.4.5 A ...
Posted by GBS on Sat, 30 Oct 2021 22:23:32 -0700
Java description LeetCode, 123. Best Time to Buy and Sell Stock III
Hello, I'm hehaige. I focus on the back end. If I can, I want to be a code designer instead of an ordinary coder to witness the growth of hehaige. Your comments and praise are my biggest motivation.
1-1: title
You are given an array prices where prices[i] is the price of a given stock on the ith day.
Find the maximum profit you can achieve ...
Posted by cristiano on Sat, 30 Oct 2021 20:21:34 -0700
Usage of file storage, list control ListView and adapter SimpleAdapter and BaseAdapter
1, File storage file store File storage in Android is divided into internal storage and external storage.
Internal storage: store the data of the application into the device in the form of a file (under data / [package name of your APP] / files). When the created application is uninstalled, its internal storage file will be deleted. External ...
Posted by hermand on Sat, 30 Oct 2021 19:58:11 -0700
Classic interview questions of binary tree (you deserve it)
Classic interview questions of binary tree
Before that, I have published the basic knowledge of binary tree:
Detailed explanation of binary tree Next, I will tell you some classic and common binary tree interview questions
Preliminary interview questions
Maximum depth of binary tree
Question: Maximum depth of binary tree Solution idea: ...
Posted by gacon on Sat, 30 Oct 2021 12:46:33 -0700
SpringCloud quick start (based on crazy explanation)
Spring cloud learning notes
1, Study Preface
1.1 learning premise
Proficient in using SpringBoot microservice rapid development frameworkLearned about Dubbo + Zookeeper distributed FoundationThe computer configuration memory shall not be less than 8G(16G and above are recommended)
1.2 article outline
Five components of Spring Cloud
S ...
Posted by ashutosh.titan on Sat, 30 Oct 2021 09:22:20 -0700
Java layout menu
-Divide the parts into whole and encapsulate the method (multiple buttons will be set in one interface, which can be written in array, and less code can be written)
String[]string={"rectangle","triangle","circular","Trisection point"};
-Containers are divided into top-level container JFrame and general container JPanel -JFrame is the def ...
Posted by mort on Sat, 30 Oct 2021 08:54:31 -0700
Crazy God. Java method learning
1, What is method
System.out.println(), so what is it?
A: System is "class". out is "output object". println() is "method".
A Java method is a collection of statements that together perform a function.
Method is an ordered combination of steps to solve a class of problemsMethod contained in a class or object ...
Posted by predhtz on Sat, 30 Oct 2021 06:47:39 -0700