Ò׽ؽØÍ¼Èí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB
ÈÈÃűêÇ©£º c c# c++ asp asp.net linux php jsp java vb Python Ruby mysql sql access Sqlite sqlserver delphi javascript Oracle ajax wap mssql html css flash flex dreamweaver xml
 ×îÐÂÎÄÕ :

java ËÄÖÖ±éÀúListµÄ·½·¨¼°±È½Ï

 java ËÄÖÖ±éÀúListµÄ·½·¨¼°±È½Ï
import java.util.ArrayList;
import java.util.Iterator;
import java.util.List;
public class ListTest {

public static void main(String args[]){
List<Long> lists = new ArrayList<Long>();
for(Long i=0l;i<1000000l;i++){
lists.add(i);
}

Long oneOk = oneMethod(lists);
Long twoOk = twoMethod(lists);
Long threeOk = threeMethod(lists);
Long fourOk = fourMethod(lists);

System.out.println("One:" + oneOk);
System.out.println("Two:" + twoOk);
System.out.println("Three:" + threeOk);
System.out.println("four:" + fourOk);

}

public static Long oneMethod(List<Long> lists){

Long timeStart = System.currentTimeMillis();
for(int i=0;i<lists.size();i++) {
System.out.println(lists.get(i));
}
......

javaÖÐRandomµÄÓ÷¨

import java.util.Random;
public class MathOperators {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
//Ëæ»úÊýµÄ²úÉú
int[] arr = new int[10];
Random r = new Random();
for (int m = 0; m < arr.length; m++)
{
arr[m] = r.nextInt(100);
}
for (int n = 0; n < arr.length; n++)
{
System.out.println(arr[n]);
}
}
}
......

ת: javaÃæÊÔÌâ¼°´ð°¸£¨»ù´¡Ìâ122µÀ£¬´úÂëÌâ19µÀ£©

 http://ilovelate.itpub.net/post/7368/40836
JAVAÏà¹Ø»ù´¡ÖªÊ¶
1¡¢ÃæÏò¶ÔÏóµÄÌØÕ÷ÓÐÄÄЩ·½Ãæ
1.³éÏó£º
³éÏó¾ÍÊǺöÂÔÒ»¸öÖ÷ÌâÖÐÓ뵱ǰĿ±êÎ޹صÄÄÇЩ·½Ã棬ÒÔ±ã¸ü³ä·ÖµØ×¢ÒâÓ뵱ǰĿ±êÓйصķ½Ãæ¡£³éÏó²¢²»´òËãÁ˽âÈ«²¿ÎÊÌ⣬¶øÖ»ÊÇÑ¡ÔñÆäÖеÄÒ»²¿·Ö£¬ÔÝʱ²»Óò¿·Öϸ½Ú¡£³éÏó°üÀ¨Á½¸ö·½Ã棬һÊǹý³Ì³éÏ󣬶þÊÇÊý¾Ý³éÏó¡£
2.¼Ì³Ð£º
¼Ì³ÐÊÇÒ»ÖÖÁª½áÀàµÄ²ã´ÎÄ£ÐÍ£¬²¢ÇÒÔÊÐíºÍ¹ÄÀøÀàµÄÖØÓã¬ËüÌṩÁËÒ»ÖÖÃ÷È·±íÊö¹²ÐԵķ½·¨¡£¶ÔÏóµÄÒ»¸öÐÂÀà¿ÉÒÔ´ÓÏÖÓеÄÀàÖÐÅÉÉú£¬Õâ¸ö¹ý³Ì³ÆÎªÀà¼Ì³Ð¡£ÐÂÀà¼Ì³ÐÁËԭʼÀàµÄÌØÐÔ£¬ÐÂÀà³ÆÎªÔ­Ê¼ÀàµÄÅÉÉúÀࣨ×ÓÀࣩ£¬¶øÔ­Ê¼Àà³ÆÎªÐÂÀàµÄ»ùÀࣨ¸¸Àࣩ¡£ÅÉÉúÀà¿ÉÒÔ´ÓËüµÄ»ùÀàÄÇÀï¼Ì³Ð·½·¨ºÍʵÀý±äÁ¿£¬²¢ÇÒÀà¿ÉÒÔÐ޸ĻòÔö¼ÓÐµķ½·¨Ê¹Ö®¸üÊʺÏÌØÊâµÄÐèÒª¡£
3.·â×°£º
·â×°Êǰѹý³ÌºÍÊý¾Ý°üΧÆðÀ´£¬¶ÔÊý¾ÝµÄ·ÃÎÊÖ»ÄÜͨ¹ýÒѶ¨ÒåµÄ½çÃæ¡£ÃæÏò¶ÔÏó¼ÆËãʼÓÚÕâ¸ö»ù±¾¸ÅÄ¼´ÏÖʵÊÀ½ç¿ÉÒÔ±»Ãè»æ³ÉһϵÁÐÍêÈ«×ÔÖΡ¢·â×°µÄ¶ÔÏó£¬ÕâЩ¶ÔÏóͨ¹ýÒ»¸öÊܱ£»¤µÄ½Ó¿Ú·ÃÎÊÆäËû¶ÔÏó¡£
4. ¶à̬ÐÔ£º
¶à̬ÐÔÊÇÖ¸ÔÊÐí²»Í¬ÀàµÄ¶ÔÏó¶ÔͬһÏûÏ¢×÷³öÏìÓ¦¡£¶à̬ÐÔ°üÀ¨²ÎÊý»¯¶à̬ÐԺͰüº¬¶à̬ÐÔ¡£¶à̬ÐÔÓïÑÔ¾ßÓÐÁé»î¡¢³éÏó¡¢ÐÐΪ¹²Ïí¡¢´úÂë¹²ÏíµÄÓÅÊÆ£¬ºÜºÃµÄ½â¾öÁËÓ ......

Java Consultant

Job Title: Java Consultant- Staff Software Engineering
 
Location: Shanghai
 
Company: HP China (www.hp.com)
 
 
This is a position reporting to Product Development Manager. The Staff Software Engineering will be responsible for leading development of robust high-volume kernel framework. The successful candidate will be a top performer and versatile professional leading the design, development and implementation of system infrastructure at eBay. This position will be based in Shanghai.
 
Responsibilities:
 
ž   Define, design, implement, unit test and debug complex, multi-tier distributed software applications on eBay platform.
ž   Work with other engineers, product management, QA and Operation team to design and implement application features
ž   Estimate engineering effort, plan implementation, and rollout system changes.
ž   Develop industry and product technical expertise.
......

¼¸ÖÖ³£¼ûµÄÊý¾Ý½á¹¹µÄJAVAʵÏÖ

 ÒÀ¾ÉûÓÐÎÄ×Ö˵Ã÷£¬Ö»ÓÐÉÙÁ¿µÄ×¢ÊÍ£¬¶þ²æ²éÕÒÊ÷Óкܶà²Î¿¼×ÊÁÏ£¬ÕâÀï¾Í²»¶à˵ÁË¡£ÏÂÃæ·îÉÏJAVA´úÂë
package utility.structure;
import java.io.Serializable;
import java.security.InvalidParameterException;
import java.util.Comparator;
import java.util.ConcurrentModificationException;
/**
*
* @author odie.tang
* @version 1.0 11/09/09
*/
public class BinarySearchTree<E> implements Comparable<E>,Serializable{

private static final long serialVersionUID = -8154673525487170187L;
/**
* The comparator, or null if priority queue uses elements'
* natural ordering.
*/
private Comparator<? super E> comparator = null;
private E data;
private BinarySearchTree<E> parent = null;
private BinarySearchTree<E> leftChild = null;
private BinarySearchTree<E> rightChild = null;
/**
* level indicates node's level in the whole tree, eg: root's level is 1, and its children's level is 2...
*/
private int level;

/**
......

javaÁ¬½Ó³£ÓÃÊý¾Ý¿â

---------MySql-----
Class.forName("com.mysql.jdbc.Driver").newInstance();
Connection conn = DriverManager.getConnection("jdbc:mysql://localhost:3306/test","username", "password");
--------Access ---------
½¨Á¢ODBCÊý¾ÝÔ´
Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
Connection con=DriverManager.getConnection("jdbc:odbc:accessdb");
--------oracle---------
Class.forName("
oracle.jdbc.driver.OracleDriver"
).newInstance();
Connection con=DriverManager.getConnection("
jdbc:oracle:thin:@localhost:1521:dbname
","username","password");
---------db2---------
Class.forName("com.ibm.db2.jdbc.net.DB2Driver");
String url="jdbc:db2://192.9.200.108:6789/SAMPLE";
cn = DriverManager.getConnection( url, sUsr, sPwd );
---------Microsoft SQL Server---------
Class.forName( "com.microsoft.jdbc.sqlserver.SQLServerDriver" );
cn = DriverManager.getConnection( &qu ......
×ܼǼÊý:40319; ×ÜÒ³Êý:6720; ÿҳ6 Ìõ; Ê×Ò³ ÉÏÒ»Ò³ [5585] [5586] [5587] [5588] 5589 [5590] [5591] [5592] [5593] [5594]  ÏÂÒ»Ò³ βҳ
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ