Recently in the Java source code, but because of their own limited English, so want to use Chinese annotation method of the source of all the methods to rewriteOnce again, the following is a small part of the landlord finishing out. I've managed
1. Loop through all the elements in the list and delete duplicates Public Static list removeduplicate (list list) { for int i = 0; I ) { for int J = list.size () - 1; J > i; J-- ) { if (
for a novice class has not yet started beginners, now understand the collation of these points of knowledge is still a bit far-fetched, for many big guys to see, these understanding is somewhat superficial, but also need to understand my own
The realization of TemplateloaderAs a template file loading abstraction, naturally cannot restrict where the template comes from, in Freemarker by several major implementation classes to reflect, these templateloader can be used independently,
1. Create the user entity class.@Data Public class User { private String username; Private String password; Private Integer age;}2. Create Userdao to simulate database interaction. Public classuserdao{ PublicListqueryuserlist () {List
Types of Java Shift operationsBasics: We know that in Java, the int type occupies 32 bits, can represent a positive number, or it can represent a negative number. A positive number is converted to binary with a maximum of 0, and the binary of
1, instantiate ArrayList when the default input size is 10, and if increased to 11 will not error, will automatically expand.2. To get the value of the specified index, you must ensure that ArrayList has so many.3. It is recommended to specify the
This is one of my previous interview questions:public class MyThread extends Thread {@Overridepublic void Run () {try {Mythread.sleep (1000);SYSTEM.OUT.PRINTLN ("Thread ....") normal operation ");} catch (Interruptedexception e) {E.printstacktrace ()
Object creationAt the language level, creating an object is usually solved with just one new keyword, but in a virtual machine, the creation of an object takes a complex process.Constant pool in the method areaWhen the virtual opportunity goes to a
1. Study summary 1.1 This week summarize anomalies in the way you like (mind mapping or other). 2. Written work
This PTA job problem set anomaly
1. Common exceptions
Combined Topic 7-1 Answer
1.1 What exceptions do you
"Crazy Java Handout • Third Edition", a total of 851 pages, 18 chapters.The directory is as follows:Chapter 1th Java Language Overview and development environmentThe 2nd Chapter understands object-orientedChapter 3rd data Types and operators4th.
1. Steering and redirection1, Request.getrequestdispatcher ("a.jsp"). Forward (Rquest,response); Request forwarding It can save the data page adjustment in the request but the address is not adjusted2, Response.sendredirect ("b.jsp"); The way to
The DAO layer uses Hibernate to connect to the database, to manipulate the database (add and revise). Service layer: Reference to the corresponding DAO database operation, where you can write your own code (such as simple judgment). Action layer:
Mybatis -- learning notes, mybatis learning notes
Configuration File
1. properties introduces the content of the external properties configuration file
Resource: Introduce resources under the class path
Url: Introduce the network path or disk path
The Spring framework performs crud operations on the jdbcTemplate of the dao layer, namely, update operations on the database and jdbctemplatecrud operations.
Use jdbcTemplate
The principle is to load the Driver Class. forName ("com. mysql. jdbc.
[Java concurrency] The Executor framework and thread pool configuration and usage, javaexecutor[Java concurrency] Executor Framework mechanism and thread pool Configuration
1. The Executor framework is introduced in Java 5. It uses the thread pool
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service