main string

These are two routines, is to demonstrate how to use Java to read and write Excel 2007 files. Note there are more detailed description of the development environment, Eclipse, as long as you stick in the past can not be run. Routines using the POI-XS

1 constructor must define its class has the same name. Constructor does not return type, not void. (2) class can not declare constructor, then the class declare a method implied body is empty no-arg constructor. But when the class constructor when th

1 from the Microsoft website to download on the Microsoft Download Center in the need to use the jar package http://download.microsoft.com/download/2/8/9/289dd6a3-eeeb-46dc-9045-d0c6b59bfbc1/sqljdbc_1.1.1501 .101 _chs.exe Download and run this file i

The following code from the hadoop official website, but that case is very complicated, I have been simplified The following code must be run on a linux system, and has been successfully deployed installed hadoop package com.hadoop.test3; import java

Lucene's simple to use: When making the need to retrieve the original index has been created to retrieve the desired content. So in general when using Lucene is two, indexing and retrieval, followed by a number of strategies can not be! 1 index impor

1, built environment New JAVA project, add the package are: For the Hadoop hadoop-core-0.20.204.0.jar For Hbase of hbase-0.90.4.jar, hbase-0.90.4-tests.jar and Hbase resource package lib directory of all the jar packages 2, the main program package c

From the Internet for some solution. Original: http://blog.163.com/me_wxx/blog/static/13519139120105152638477/ Here is part of the program into the data: public static void main (String [] args) { / / TODO Auto-generated method stub User myuser = new

/ ** The establishment of a table, and start on behalf of chefs, guests thread. Pass into the constructor MakerThread and EaterThread random number seed * / public class Main { public static void main (String [] args) { Table table = new Table (3); n

CountDownLatch a synchronization helper class, in other threads to complete a set is performed before the operation, which allows one or more threads wait CyclicBarrier a synchronization helper class, which allows a group of threads waiting for each

Because the project needs to send mail through the Exchange mail server, and use moyosoft the Java Bridge to Exchange solution is only one month trial period, after a trial period to pay for, so the Internet to find another Exchange Web Services Solu

Quote For ClassPathXmlApplicationContext: classpath: prefix is ​​not needed, the default is that the project classpath path following; If you want to use an absolute path, need to add the file: prefix indicates that this is the absolute path; For Fil

The day before yesterday following a successful deployment in Ubuntu10.04 JDK environment, and today wanted to be in the operating system following JAVA programming practice! Well, Just do it. First of all, have to create a document, but when I right

java CC is able to generate the grammar and lexical analyzer generator. Grammar and lexical analyzer is a key component of the string-processing software. Compiler and interpreter integrates lexical and syntax analyzer to interpret those containing t

BoneCP is a fast, free, open-source, Java database connection pool (JDBC Pool) library. If you are familiar with C3P0 and DBCP then you already know what this means. For the rest, this is a library that will manage a database connection for you to ge

First given a problem, the following program output is the number? import java.util.Date; public class Test extends Date{ public static void main(String[] args) { new Test().test(); } public void test(){ System.out.println(super.getClass().getName())

HttpClient latest version of the application: HttpClient4.0, HttpCore4.0 basis. This version of the interface methods with the previous version has some interface Now Apache has released: HttpCore 4.0-beta3, HttpClient 4.0-beta1. Here you can go to d

A, SVN hooks knowledge SVN SVN hooks that hook script is to use the background of management commands and the hooks used to provide the required parameters. To some combination, to meet the needs! Hook script in the hooks directory of each repos. Eac

Start talking about the creation of the thread. Thread to create a total of two forms: -------------------------------------------------- ------------------------------ One is inherited from the Thread class. Thread class is a concrete class that is

CXF and webservice axis are very good technical framework. Recent projects need to understand a little visit to the two frameworks. First talk about axis2 axis2 client access to the server used in two ways: 1 way to use call import org.apache.axis.cl

Download h2database jar package h2-1.3.159.jar http://www.h2database.com/html/download.html Jdbc connection to build a project buildpath with h2-1.3.159.jar package on the line after that data is generated JdbcConn categories: import java.sql.Connect

Using JDBC to connect SQL SERVER 2008, many people are asking, I also tested a few times and found that under the previous method of connection will be a small problem. Summarize here for everyone. AD: The reason is that a connection error, JDBC conn

Oracle's Blob field rather special, his performance is better than a lot of long fields, for example, can be used to save binary data like images. Writing Blob fields and other types of fields to write a very different way, because the Blob itself ha