ÔÚEclipseºÍNetBeansÖе¼ÈëJava API
¹¤ÓûÉÆÆäÊ£¬±ØÏÈÀûÆäÆ÷¡£ÊìϤ¿ª·¢»·¾³¿ÉÒÔÈÃÄã¸ü¿ì¸üºÃ¸üÊæ·þµØ¿ª·¢Èí¼þ¡£¾ÍÈçͬVC/.net¿ª·¢ÈËÔ±Àë²»¿ªmsdn£¬java¿ª·¢ÈËÔ±ÍùÍùÒ²Àë²»¿ªjava API¡£ÏÂÃæ½éÉÜÏÂÈçºÎÔÚEclipseºÍNetBeansÖе¼Èëjava API¡£Ê¹Ö®¿ÉÒÔ·½±ã¿ìËٵزéÕÒ£¬¶¨Î»¡£
¡¡¡¡±¾ÎÄÊʺÏÓë¸Õ¸Õ½Ó´¥Eclipse»òNetBeansµÄjava¿ª·¢ÈËÔ±£¬»òÕßÊÇÓоÑéµÄʹÓÃEclipse»òNetBeans¿ª·¢£¬µ«ÒÔÇ°Ò»Ö±ÊÇÒ»±ß¿ª·¢£¬Ò»±ßÔÚÐèÒªµÄʱºòÓÃä¯ÀÀÆ÷´ò¿ªjava APIµÄ¿ª·¢ÈËÔ±¡£
¡¡¡¡Eclipse£º
¡¡¡¡1.´ò¿ªÊ×Ñ¡ÏWindow-Perferences
¡¡¡¡2.¶¨Î»µ½jre£ºJava-Installed JREs Ñ¡ÖÐÄãÒÑÓеÄÒªÌí¼Ójava APIµÄjre»òjdk£¨Èç¹ûÄãÓжà¸öjreºÍjdk£©¡£
¡¡¡¡3.±à¼ÊôÐÔ£ºµ¥»÷ÓÒ·½µÄEdit£¬³öÏÖEdit JRE¶Ô»°¿ò£¬Èç¹ûÄãÊÇн¨£¬³öÏÖNew JRE¶Ô»°¿òÒ²Ò»Ñù¡£ÕâʱÏ·½»á³öÏÖÒ»ÁÐjar°ü£¬ÀýÈçX:\Program Files\Java\(jre/jdk°æ±¾)\jre\lib\rt.jar¡£µ¥»÷rt.jar°üÑ¡ÖУ¬È»ºóµ¥»÷ÓÒ·½µÄJavadoc Location¡£
¡¡¡¡4.ÌîдJava APIλÖã¬Javadoc URL·½Ê½ÊÇJava APIµÄÍøÂçµØÖ·»ò±¾µØJavadoc½âѹºóµÄµØÖ·¡£Javadoc in archiveÊÇÏÂÔص½±¾µØµÄJavadocѹËõ°üµØÖ·£¬È»ºóÔÚPath within archiveÖÐÌîдAPIÔÚѹËõ°üÄÚ²¿µÄ½á¹¹£¬Ò»°ãΪdocs/API£¬Ò²¿ÉÒÔͨ¹ýBrowse¸ü·½±ãµØµ¼Èë¡£
¡¡¡¡5.ÊÔÊÔÔÚEclipseÖÐд¼¸¾ä´úÂ룬Ȼºóµ¥»÷ÄãÒª²éAPIµÄÀà»ò·½·¨Ãû£¬F1һϣ¬ÊDz»ÊÇÄܺܿìµØ¶¨Î»µ½help£¬µÚÒ»ÏîÓ¦¸Ã¾ÍÊÇjavadoc forÄãÑ¡ÔñµÄÀà»ò·½·¨ÁË¡£Äã¿ÉÒÔÔÚEclipseÖв鿴£¬Ò²ÄÜ¿ìËÙ¶¨Î»µ½ä¯ÀÀÆ÷ÁË£¬²»ÓÃÄã×Ô¼º²éÕÒ¡£
¡¡¡¡ËµÃ÷£ºÒ»°ã¶¨Î»rt.jar°ü¾Í¿ÉÒÔÁË¡£²»·ÅÐĵĻ¯ÄãÒ²¿ÉÒ԰ѱðµÄ°ü¶¼ÅäÖÃÏ¡£
¡¡¡¡ÔÚeclipse3.2ºÍeclipse3.3Öе÷ÊÔͨ¹ý¡£
¡¡¡¡NetBeans£º
¡¡¡¡1.Tool-Java platform
¡¡¡¡2.ÓÒ·½javadocÖ±½ÓÌí¼ÓjavadocѹËõ°üµØÖ·»ò½âѹºóµÄµØÖ·¡£
¡¡¡¡²âÊÔ£ºÐ´¼¸¶Î´úÂ룬µ¥»÷Òª²éÕÒAPIµÄÀà»ò·½·¨£¬Shift£«F1£¬¿´½á¹ûÓÐû¡£Í¬ÑùÖ§³ÖÔÚIDEºÍä¯ÀÀÆ÷ÖпìËÙ¶¨Î»¡£
¡¡¡¡×¢Ò⣬ѹËõ°ü·½Ê½Ï£¬Ê¹ÓõÄѹËõ°üÀïµÄ½á¹¹ÓÐÑϸñ¹æ¶¨£¬½¨Òé¾ÍÊÇʹÓÃSunÍøÕ¾Ô°æÏÂÔصÄjavadoc£¬»òÕß·ÂÔ°æ½á¹¹¡£·ñÔòNetBeans²»Äܶ¨Î»»ò²éÕÒ¡£ÕâµãNetBeans×öµÄÃ÷ÏÔûÓÐeclipseÁé»î¡£
¡¡¡¡ÔÚNetBeans IDE6.0Öе÷ÊÔͨ¹ý¡£
Ïà¹ØÎĵµ£º
create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ
......
2009-04-14 16:39
½üˮ¥̨ÏȵÃÔ£¬ÏòÑô»¨Ä¾Ò×Ϊ´º--------ËÕ÷ë
»º´æµÄ×÷ÓÃÔÚµÚÒ»ÂÛhttp://hi.baidu.com/%CB%BC%C3%F4%D3%EA/blog/item/908d0cdecbc8a71b495403cc.htmlÖÐÒÑÓв¿·Ö²ûÊö,ÏÂÃæahuaxuanºÍ´ó¼ÒÒ»ÆðÀ´Ñ§Ï°Ò»Ï»º´æµÃÁíÍâÒ»¸öÖØÒªµÄ¹æÔò,½üºÍ¿ì.
ÔÚÎÒÃÇ´ò¿ªä¯ÀÀÆ÷,¾ö¶¨ä¯ÀÀij¸öÍøҳ֮ǰ(Ö¸ÈËÑÛ¿´µ½ÆÁÄ»ÉϵÄÄÚÈ ......
import java.util.Enumeration;
import java.util.HashMap;
import java.util.Properties;
public class SystemProperties
{
public static String LINE_SEPARATOR = "line.separator";
public static String FILE_SEPARATOR = "file.separator";
public static String USER_LANGUAGE = "user.language";
......
import org.dom4j.Document;
import org.dom4j.DocumentException;
import org.dom4j.io.SAXReader;
public class DocumentUtil
{
public static Document loadXMLByAbsolutePath(String absoluteFilePath, String logFileName)
{
SAXReader saxReader = new SAXReader();
Document document = null;
try ......
Java NIO APIÏê½â
ÔÚJDK
1.4ÒÔÇ°£¬JavaµÄIO²Ù×÷¼¯ÖÐÔÚjava.ioÕâ¸ö°üÖУ¬ÊÇ»ùÓÚÁ÷µÄ×èÈû£¨blocking£©API¡£¶ÔÓÚ´ó¶àÊýÓ¦ÓÃÀ´Ëµ£¬ÕâÑùµÄAPIʹÓúܷ½
±ã£¬È»¶ø£¬Ò»Ð©¶ÔÐÔÄÜÒªÇó½Ï¸ßµÄÓ¦Óã¬ÓÈÆäÊÇ·þÎñ¶ËÓ¦Óã¬ÍùÍùÐèÒªÒ»¸ö¸üΪÓÐЧµÄ·½Ê½À´´¦ÀíIO¡£´ÓJDK 1.4Æð£¬NIO
API×÷Ϊһ¸ö»ùÓÚ»º³åÇø£¬²¢ÄÜÌṩ·Ç×èÈû(non-blo ......