javaÖеĶ¨Ê±Æ÷Timer
package com.tonglian.test;
import java.util.TimerTask;
//TimerTaskÊǸöÐéÀ࣬ÆäÖÐÓÐÒ»¸örun()
public class Work extends TimerTask{
@Override
public void run() {
// TODO Auto-generated method stub
System.out.println("tttt/n");
}
}
//¹¦ÄÜ£ºÃ¿¸ô1Ãë¾Í»áµ÷ÓÃWorkÖеÄrun()·½·¨
package com.tonglian.test;
import java.util.Timer;
public class Test {
public static void main(String[] args) {
Timer timer=new Timer();
timer.schedule(new Work(), 0,1000);
}
}
Ïà¹ØÎĵµ£º
WindowsϵÄMemcache°²×°£º
1. ÏÂÔØmemcacheµÄwindowsÎȶ¨°æ£¬½âѹ·Åij¸öÅÌÏÂÃ棬±ÈÈçÔÚc:\memcached
2. ÔÚÖնˣ¨Ò²¼´cmdÃüÁî½çÃ棩ÏÂÊäÈë ‘c:\memcached\memcached.exe -d install’ °²×°
3. ÔÙÊäÈ룺 ‘c:\memcached\memcached.exe -d start’ Æô¶¯¡£NOTE: ÒÔºómemcached½«×÷ΪwindowsµÄÒ»¸ö· ......
/**
* inParam:ÐèҪת»»µÄgb2312ÖÐÎÄ×Ö·û ·µ»Ø:¸ÃÖÐÎÄ×Ö·û¶ÔÓ¦µÄUTF-8±àÂëµÄ×Ö·û
*/
public static String toUTF(String inPara) {
char temChr;
&n ......
Java¶ÁÈ¡µØÀíÐÅÏ¢Êý¾ÝÎļþ£¬²¢½«Æä´æÈëOracleÊý¾Ý¿â¡£
package file;
import java.io.BufferedReader;
import java.io.File;
import java.io.FileReader;
import java.io.IOException;
import java.sql.Connection;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException; ......
1.ÈçºÎ»ñµÃÊý×éµÄ³¤¶È£¿
Êý×éÃû.length
2.·ÃÎÊÐÞÊηû“public/private/protected/ȱʡµÄÐÞÊηû”µÄʹÓÃÀà?
public : ¹«¹²,¾ù¿É·ÃÎÊ
private: ˽ÓеÄ,ͬһ¸öjavaÀàÖпÉÒÔ·ÃÎÊ.×ÓÀ಻ÄÜ·ÃÎÊ.
protected: ͬһ¸ö°üÖеÄÀ඼¿É·ÃÎÊ.×ÓÀà¿ÉÒÔ·ÃÎÊ.
ȱʡ,friendly :µ±Ç°Àà,ͬһ¸ö°ü,¶¼¿ÉÒÔ·ÃÎÊ.
×÷ÓÃÓò µ± ......
Struts¡¢HibernateºÍSpringÊÇÎÒÃÇJava¿ª·¢Öеij£Óùؼü£¬ËûÃÇ·Ö±ðÕë¶Ô²»Í¬µÄÓ¦Óó¡¾°¸ø³ö×îºÏÊʵĽâ¾ö·½°¸¡£µ«ÄãÊÇ·ñÖªµÀ£¬ÕâЩ֪Ãû¿ò¼Ü×î³õÊÇÔõÑù²úÉúµÄ£¿
ÎÒÃÇÖªµÀ£¬´«Í³µÄJava WebÓ¦ÓóÌÐòÊDzÉÓÃJSP+Servlet+JavabeanÀ´ÊµÏֵģ¬ÕâÖÖģʽʵÏÖÁË×î»ù±¾µÄMVC·Ö²ã£¬Ê¹µÄ³ÌÐò½á¹¹·ÖΪ¼¸²ã£¬ÓиºÔðǰ̨չʾµÄJSP¡¢¸ºÔðÁ÷³Ì ......