[Java learning notes] Collection framework I, java learning notes
Collection class:
An object is used to encapsulate special data. An object needs to be stored if the number of objects is uncertain.
The collection container is used for storage.Set features:
1. the container used to store objects.
2. The length of the set is variable.
3. Basic data type values can
different numbers of libraries) support n data sources 8 Express Number Logistics query interface (no need to select logistics company, automatic identification according to the number) 9 Call camera to take photos custom crop edit avatar, Avatar picture chroma Adjustment 10 Code Editor, online template editing, copy development tool editor, PDF online Preview, File conversion encoding 11 video playback Technology video barrage technology, multiplayer instant Messenger screen chat Span s
ConcurrenthashmapConcurrenthashmap is composed of the segment array structure and the HASHENTRY array structure.A concurrenthashmap contains a segment array, the structure of segment is similar to HashMap, is an array and a list structure, a segment contains a hashentry array, Each hashentry is an element of a linked list structure, and each segment guardian is an element of the Hashentry array, and when the data for the Hashentry array is modified, it must first obtain its corresponding segment
Spring is an open source framework, and spring is a lightweight Java development framework that emerged in 2003 by Rod Johnson in his book expert one-on-one development and Some of the concepts and prototypes elaborated in design are derived. It is created to address the complexities of enterprise application development. One of the main advantages of the
hierarchy . Collection represents a set of objects, also known as Collection elements . Some collection allow duplicate elements, while others do not. Some of the collection are orderly, while others are unordered. The JDK does not provide any direct implementation of this interface: it provides more specific sub-interfaces (such as Set and List) implementations. This interface is often used to pass collection and operate these collection where it is required to be the most universal.Collection
The full name of MVC is the model View Controller, which is the abbreviation for Models-View-controller, a software design paradigm that organizes code in a way that separates business logic, data, and interface display.This framework pattern is a simple business logic for solving personal income tax calculationsServletImport Java.io.ioexception;import Javax.servlet.servletexception;import Javax.servlet.http.httpservlet;import Javax.servlet.http.https
, have you tried them? If you have tried it, which one do you like better? Which one do you not like?
He has experimented with webwork,jsf,wicket. He likes the simplicity of webwork, but does not like its template mode (tag's template, should), it also does not provide component encapsulation. He thinks JSF's tool support is very appealing. Wicket's pure Java implementation is good, but XML configuration sucks.
4. What will be the future of your
The full name of MVC is the model View Controller, which is the abbreviation for Models-View-controller, a software design paradigm that organizes code in a way that separates business logic, data, and interface display.This framework pattern is a simple business logic for solving personal income tax calculationsServletImport Java.io.ioexception;import Javax.servlet.servletexception;import Javax.servlet.http.httpservlet;import Javax.servlet.http.https
Last Updated:
Key word: Java Open-Source J2EE framework
Tip: This article briefly introduces the J2EE framework, including Spring framework, Expresso framework, dinamica framework, ejosa, jeenius
Java from the birth to the present, all the way soaring, can be said red all over the world, red to purple. With the popularity of Java, many Java frameworks have been born:Spring, WebWork, Struts, HIbernate, Jdiy, Jfinal, Quartz, welocity, IBATIS, Compiere erp CRMSpring Framework "
Java multithreading-Executor framework overview, java multithreading executor 1. Task-related interfaces and Classes1.1 Runnable
Indicates an executable command, which is usually used to execute tasks in different threads.
package java.lang;public interface Runnable { public void run();}1.2 Callable Indicates a task with returned results.
package java.util.con
Java --- 25 --- Collection framework common methods, java --- 25 --- common
Collection class
Why does a collection class appear?
Object-oriented language (OSS) is used to display objects. To facilitate operations on multiple objects, OSS stores objects. A set of objects is the most common way to store objects.
What is the difference between containers of arrays
Java underlying technology series-thread pool framework, java underlying
I. Thread Pool Structure
Ii. Example
Define thread Interface
Public class MyThread extends Thread {@ OverridePublicvoid run (){System. out. println (Thread. currentThread (). getName () + "executing ");}}
1: newSingleThreadExecutor
ExecutorService pool = Executors. newSingleThreadExecutor
can close the program and the next time you start, from the previously crawled URL to continue to crawl
To specify a path, the. Urls.txt and. Cursor.txt Two files are established
Redisscheduler
Use Redis to save the crawl queue for multiple machines to simultaneously crawl together
Need to install and start Redis
You can define the strategy of the de-weight separately
Hashsetduplicateremover
Use HashSet to remove weight and occup
Java framework --- hibernate connection pool, java --- hibernate
Hibernate supports third-party connection pools. the officially recommended connection pools are C3P0, Proxool, and DBCP. Note the following three points when configuring the connection pool:1. Apche's DBCP is supported in Hibernate2, but it is no longer recommended in Hibernate3. The official expla
Java framework --- spring dependency injection, java --- spring
There are four spring dependency injection methods.
Constructor Injection
Property Injection
Factory Injection
Annotation Injection
An example is provided below:
User.java
package com.bjsxt.model;public class User { private String username; private String password; public User(){} p
TenV.addelement ("AAA"); OneV.addelement ("AAA"); AV.addelement ("abc")); -V.addelement ("CCC"); - the //Traverse - for(Enumeration en =v.elements (); en.hasmoreelements ();) { - System.out.println (En.nextelement ()); - } + - for(Iterator it =v.iterator (); It.hasnext ();) { + System.out.println (It.next ()); A } at } -}Enumeration: It is the predecessor of iterator and can also traverse the collection container.However, b
The current popular Java Enterprise Application System framework is diverse, in order to enable developers to choose the system architecture to improve the development efficiency of Java Enterprise Application, first of all, based on EJB and the more popular framework based on POJOs, respectively, and then to these fra
Below I will summarize some of the Java frameworks and open-source projects for you, so that you can have a certain understanding of the Java frameworks in general.Spring framework [Java open-source Jee framework]Spring is a powerful fra
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.