Erlang processes communicate from different perspectives, and Ralph says: even if the concurrency Erlan style can be easily added to other languages, these languages are hard to compete. Because Erlang is built specifically for telecommunications
/* The first demonstration method for File Reading */import Java. io. *; // import the IO package class filereaderdemo1 {public static void main (string [] ARGs) throws ioexception // an exception is thrown here {// upload a file to read the stream
In the Java container class, hashset and hashmap operations are performed based on hash values to store objects, which has achieved quick query.
We know that the query speed of an array is faster than the query speed of the data structure such as
Recently to do a program, the data source is DBF file, I use Java to parse it, first need to download a Java dedicated jar package javadbf-0.4.0.jar, this is the latest version. The parsing code is as follows:
Public static void main (string [] ARGs
Integration of flex in Java projects is a very valuable development solution in Web. Especially in enterprise applications, communication between flex and Java becomes more important. However, although there are many Java and flex frameworks, they
Use thread. Interrupt () to interrupt the thread
As described in listing a, the thread. Interrupt () method does not interrupt a running thread. In fact, this method throws an interrupt signal when the thread is blocked, so that the thread can exit
In a Java multi-threaded program, all threads are not allowed to throw uncaptured checked exception. That is to say, each thread needs to handle its own checked exception. This is a constraint through the java. Lang. runnable. Run () method
2. Greedy and non-greedy in regular expressions with some advanced rules 2.1 matching times
When you use a special symbol to modify the number of matches, there are several representation methods that allow the same expression to match different
We may all know that the ODBC protocol can be recorded. SQL Server 2000 is the underlying protocol, so there are many things we don't want and there are many things, we don't know. so parameterization and maintenance scripts are too difficult .. for
Document directory
Source code
Source code
Decoration mode, also known as wrapper mode. The decoration mode extends the object functions in a transparent way to the client. It is an alternative to the inheritance relationship.
Decoration mode
It is believed that many people have performed data retrieval based on strings (such as names. Is there a good way to worry about data quickly? For example, you only need to enter "Y" to search for "Sleep" by the first letter of the Chinese
JAVA input and output
Category: Default topic
The JAVA input and output functions are very powerful and flexible. What is lacking in the US is that the input and output code is not very concise, Because you often need to wrap many different objects.
XML series: use Java and JAXP to access and operate XML documents
1. Access XML documents using JavaImport the java. xml. parsers package and the org. W3C. Dom package The Org. W3C. Dom package contains the definition of the DOM parser interface
Some people often ask, if the equals method is rewritten, is it necessary to rewrite the hashcode method? The answer is yes, because if you do not rewrite the data, those based on the hash structure, such as hashMap and HashSet, will produce
Using a Worker Thread to Relieve the Event ThreadUse a working Thread for transaction operations/** Created on 2005-7-17 ** Java Thread Programming-Paul Hyde * Copyright? 1999 Sams Publishing * Jonathan Q. bo Study Notes **/package org. tju. msnrl.
In the previous article "Java uses the TCP protocol to get XML and its processing" (see: http://blog.csdn.net/softwave/article/details/8947771), this paper introduces an example of using Java to simulate the socket server and TCP communication with
★ReplaceAll ()/appendReplacement ()/appendTail ():The Matcher class also provides four methods to replace matched substrings with specified strings:
Replaceall ()
Replacefirst ()
AppendReplacement ()
AppendTail ()
Public class Test { /*** @
Write a simple code for file transfer. You can transfer files in local folders to the Server.
Server code:
Import java. io. File;Import java. io. FileOutputStream;Import java. io. IOException;Import java. io. InputStreamReader;Import
A secret class in Java socket programming
Introduction
The Java platform implements socket in the java.net package. In this article, we will use the following three classes in the java.net package to work:
· Urlconnection
· Socket
·
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