Http://www.jdon.com/jivejdon/thread/11661.html
1. vector is thread-synchronous, so it is thread-safe, while arraylist is asynchronous and insecure. If thread security is not taken into account, arraylist is generally used for high efficiency.2.
Some time ago, when I encountered a problem in the examination system, after initiating a series of tests, I had to meet a requirement that I could set the time to start and end some tests in batches, here I want to use timer,
The front-end code
In Java, the list set is required in part of the time. The map set is occasionally used, but it is often forgotten how to traverse the map set. Today, we record the following:
Java Traversal
Import Java. util. collection; import Java. util. hashmap;
==========================================
The string with... is intercepted to ensure that the length of all characters (2 in Chinese) cannot exceed Max:
Example:Left ("abcdefg", 7) = "abcdefg"Left ("abcdefg", 6) = "ABC ..."Left ("Chinese
Source: http://okone96.itpub.net/post/9033/71169
After JDK 1.1, most methods of the Java. util. date type are no longer recommended. Instead of calendar.
There are some subtle relationships between Java. SQL. Date and Java. util. Date.
How to
Serialization: serialization is the process of converting an object into a format that is easy to transmit. For example, you can serialize an object and Use http to transmit the object between the client and the server over the Internet. At the
A simple Java FTP client package is easy to use.
Javasimpleftp
Code:
Import org. jibble. simpleftp .*;......Try {Simpleftp FTP = new simpleftp ();// Connect to an FTP server on port 21.FTP. Connect ("ftp.somewhere.net", 21,
Recently coding uses the reflection mechanism in Java, the basic features are not introduced, refer to a post for future reference (http://wenku.baidu.com/view/d7be6b22aaea998fcc220e67.html ).
The problems I encountered are briefly described as
Private logs of Shanghai Java application Q &
Materials 21:27:40 read 0 comments 0 font size: large and small subscriptions
Zhu Rui 20:18:08Hi!Saturday 20:18:35Hi!Saturday 20:19:03I took part in your application this afternoon.Saturday 20:19:12Java
1. decompress and install JDK
Go to the jdk-6u14-linux-i586.bin file directory under the shell terminal,
Execute the command./jdk-6u14-linux-i586.bin at this time there will be a protocol, continue to press enter, when asked whether to agree, enter
Source: [region]Java essence 1. Stack and heap are the places where Java stores data in Ram. Unlike C ++, Java automatically manages stacks and stacks, and programmers cannot directly set stacks or stacks.
2. The advantage of stack is that the
------------------------------ Intermediate server -----------------------------
Downloaded Tomcat 6.0.33Http://mirror.bjtu.edu.cn/apache/tomcat/tomcat-6/v6.0.33/bin/apache-tomcat-6.0.33.exe
----------------------------- Development ide -------------
Http://www.cnblogs.com/bronte/articles/2321188.html
The semaphore Implementation described in this article is based on synchronized, wait () and policy/policyall (). This is a typical implementation method before Java is released. many such cases
RSS is a standard XML file. The RSS reader can read this XML file to obtain information about the article, so that users can read the blog through the RSS reader instead of the browser, we only need to dynamically generate this XML file. Rsslibj is
Final in Java
Author: getmc Source: online collection time:
Usage of final in Java:
Final is not commonly used in Java, but it provides functions such as defining constants in C language, final also allows you to control whether your members,
Java has provided the annotation (annotation) function since j2se5. The annotation of Java can be attached to packages, classes, methods, and fields, which is equivalent to adding additional auxiliary information to them. Annotation attached to
Reprinted: http://www.blog.edu.cn/user1/4859/archives/2005/251431.shtml
In-depth research on set in Java
Author: JJP
Set is the same concept as the set in mathematics, that is, the set without repeating elements.
This article mainly discusses how
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