Ò׽ؽØͼÈí¼þ¡¢µ¥Îļþ¡¢Ãâ°²×°¡¢´¿ÂÌÉ«¡¢½ö160KB

[תÔØ]javaÖеÄ×¢Ê͹淶

 JAVA×¢ÊÍ·½·¨¼°¸ñʽ
1¡¢µ¥ÐÐ(single-line)--¶Ì×¢ÊÍ£º//……   
µ¥¶ÀÐÐ×¢ÊÍ£ºÔÚ´úÂëÖе¥ÆðÒ»ÐÐ×¢ÊÍ£¬ ×¢ÊÍÇ°×îºÃÓÐÒ»ÐпÕÐУ¬²¢ÓëÆäºóµÄ´úÂë¾ßÓÐÒ»ÑùµÄËõ½ø²ã¼¶¡£Èç¹ûµ¥ÐÐÎÞ·¨Íê³É£¬ÔòÓ¦²ÉÓÿé×¢ÊÍ¡£
×¢Ê͸ñʽ£º/* ×¢ÊÍÄÚÈÝ */
ÐÐÍ·×¢ÊÍ£ºÔÚ´úÂëÐеĿªÍ·½øÐÐ×¢ÊÍ¡£Ö÷ҪΪÁËʹ¸ÃÐдúÂëʧȥÒâÒå¡£
×¢Ê͸ñʽ£º// ×¢ÊÍÄÚÈÝ
  
ÐÐβעÊÍ£ºÎ²¶Ë(trailing)--¼«¶ÌµÄ×¢ÊÍ£¬ÔÚ´úÂëÐеÄÐÐβ½øÐÐ×¢ÊÍ¡£Ò»°ãÓë´úÂëÐкó¿Õ8£¨ÖÁÉÙ4£©¸ö¸ñ£¬ËùÓÐ×¢ÊͱØÐë¶ÔÆë¡£
×¢Ê͸ñʽ£º´úÂë + 8£¨ÖÁÉÙ4£©¸ö¿Õ¸ñ + // ×¢ÊÍÄÚÈÝ
2¡¢¿é(block)--¿é×¢ÊÍ£º/*……*/
×¢ÊÍÈô¸ÉÐУ¬Í¨³£ÓÃÓÚÌṩÎļþ¡¢·½·¨¡¢Êý¾Ý½á¹¹µÈµÄÒâÒåÓëÓÃ;µÄ˵Ã÷£¬»òÕßËã·¨µÄÃèÊö¡£Ò»°ãλÓÚÒ»¸öÎļþ»òÕßÒ»¸ö·½·¨µÄÇ°Ã棬Æðµ½Òýµ¼µÄ×÷Óã¬Ò²¿ÉÒÔ¸ù¾ÝÐèÒª·ÅÔÚºÏÊʵÄλÖá£ÕâÖÖÓò×¢ÊͲ»»á³öÏÖÔÚHTML±¨¸æÖС£×¢Ê͸ñʽͨ³£Ð´³É£º
/*
  * ×¢ÊÍÄÚÈÝ
  */
3¡¢Îĵµ×¢ÊÍ£º/**……*/
×¢ÊÍÈô¸ÉÐУ¬²¢Ð´ÈëjavadocÎĵµ¡£Ã¿¸öÎĵµ×¢ÊͶ¼»á±»ÖÃÓÚ×¢ÊͶ¨½ç·û
/**......*/Ö®ÖУ¬×¢ÊÍÎĵµ½«ÓÃÀ´Éú³ÉHTML¸ñʽµÄ´úÂ뱨¸æ£¬ËùÒÔ×¢ÊÍÎÄ
µµ±ØÐëÊéдÔÚÀà¡¢Óò¡¢¹¹Ô캯Êý¡¢·½·¨£¬ÒÔ¼°×Ö¶Î(field)¶¨Òå֮ǰ¡£×¢ÊÍÎĵµÓÉÁ½²¿·Ö×é³É——ÃèÊö¡¢¿é±ê¼Ç¡£×¢ÊÍÎĵµµÄ¸ñʽÈçÏ£º
/**
* The doGet method of the servlet.
* This method is called when a form has its tag value method
   * equals to get.
* @param request
*  the request send by the client to the server
* @param response
*  the response send by the server to the client
* @throws ServletException
*  if an error occurred
* @throws IOException
*  if an error occurred
*/
public void doGet (HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
    doPost(request, response);
}
Ç°Á½ÐÐΪÃèÊö£¬ÃèÊöÍê±Ïºó£¬ÓÉ@·ûºÅÆðͷΪ¿é±ê¼Ç×¢ÊÍ¡£¸ü¶àÓйØÎĵµ×¢
ÊͺÍjavadocµÄÏêϸ×ÊÁÏ£¬²Î¼ûjavadocµÄÖ÷Ò³£º http://java.sun.com/javadoc/index.html
4¡¢javadoc×¢ÊͱêÇ©Óï·¨
@author    ¶ÔÀàµÄ˵Ã÷ ±êÃ÷¿ª·¢¸ÃÀàÄ£¿éµÄ×÷Õß
@version   ¶ÔÀàµÄ˵Ã÷ ±êÃ÷¸ÃÀàÄ£¿éµÄ°æ±¾
@see&n


Ïà¹ØÎĵµ£º

Java³£ÓÃÕýÔò±í´ïʽ

java³£ÓÃÕýÔò±í´ïʽ
Ö»ÄÜÊäÈëÊý×Ö£º"^[0-9]*$"¡£
Ö»ÄÜÊäÈënλµÄÊý×Ö£º"^\d{n}$"¡£
Ö»ÄÜÊäÈëÖÁÉÙnλµÄÊý×Ö£º"^\d{n,}$"¡£
Ö»ÄÜÊäÈëm~nλµÄÊý×Ö£º¡£"^\d{m,n}$"
Ö»ÄÜÊäÈëÁãºÍ·ÇÁ㿪ͷµÄÊý×Ö£º"^0|[1-9][0-9]*$"¡£
Ö»ÄÜÊäÈëÓÐÁ½Î»Ð¡ÊýµÄÕýʵÊý£º"^[0-9]+( ......

java Óë c# ¶Ô±È ˼¿¼

´ÓʱàÂë7Äê¶àÁË
¶ÔÓÚjava ºÍc# ÎÒÓÐ×Å×Ô¼ºµÄÀí½â
ÔÚ2009ÄêµÄ9ÔÂÕâ¸öʱ¼äµãÎÒ¿´À´java  c#ÊÇÐÂʽÓïÑԵĴú±í
{ÒòΪÎÒÈÏΪ¼ÆËã»úµÄ·¢Õ¹Àú³ÌÊÇ
µÚÒ»½×¶Î ´ò¿×»ú(¶þ½øÖÆ),
µÚ2½×¶Î »ã±à, (±È¶þ½øÖÆ·½±ãµÄÓïÑÔ),
µÚ3½×¶Î c (¸üÒ×ÓÚ¿´Ã÷°×µÄ¸ß¼¶ÓïÑÔ),
µÚ4½×¶ÎµÚ1²ã c++ (´Ó¶ÔÏó½Ç¶ÈÀí½âµÄ¸ß¼¶ÓïÑÔ),
µÚ4½×¶ÎµÚ2² ......

java±¸·Ýsql serverÊý¾Ý¿â ´æ´¢¹ý³Ì

½ñÌì¸ø´ó¼Ò·ÖÏíÒ»ÏÂÈçºÎ±¸·ÝºÍ»Ø¸´sql server Êý¾Ý£¬
Ê×ÏÈÈ·±£Äã¾ßÓÐDBµÄ×î¸ßȨÏÞ
ÔÚJAVA´úÂëÖÐ Äã¿ÉÒÔÕâÑùдpublic class Opp extends TestCase{
public void test1()
{
try
{
Connection con = DBUtils.getConn();
String sql="backup database tdzl to disk='d:\\tdzl.bak'";
Statement st = con.c ......

weblogic jsp ±àÒ룺²é¿´±àÒëºóµÄjavaÖмä´úÂë

ÔËÐÐ×Ô¼ºÅäÖõÄwebÓ¦Óã¬ÍùÍùÖ»ÄÜ¿´¼ûweblogic±àÒëÖ®ºóµÄclassÎļþ¡£¶ø¿´²»¼û±àÒëÇ°µÄjavaµÄÎļþ¡£ÎªÁ˵÷ÊÔ·½±ã£¬ÎÒÃÇÓÐʱºòÊÇÏë¿´±àÒëÇ°µÄjavaÎļþ¡£
ÔÚweblogic.xmlÖмÓÈë
<jsp-descriptor>
<jsp-param>
<param-name>keepgenerated</param-name>
<param-value>true</par ......

Java ¶ÔÏóµÄ´æ´¢Î»ÖÃ

ժѡ×Ô¡¶Java±à³Ì˼Ïë¡·
1£® ¼Ä´æÆ÷£¨register£©¡£ÕâÊÇ×î¿ìµÄ´æ´¢Çø£¬ÒòΪËüλÓÚ²»Í¬ÓÚÆäËû´æ´¢ÇøµÄµØ·½——´¦ÀíÆ÷ÄÚ²¿¡£µ«ÊǼĴæÆ÷µÄÊýÁ¿¼«ÆäÓÐÏÞ£¬ËùÒԼĴæÆ÷ÓɱàÒëÆ÷¸ù¾ÝÐèÇó½øÐзÖÅä¡£Äã²»ÄÜÖ±½Ó¿ØÖÆ£¬Ò²²»ÄÜÔÚ³ÌÐòÖиоõµ½¼Ä´æÆ÷´æÔÚµÄÈκμ£Ïó¡£
2£®¶ÑÕ»£¨stack£©¡£Î»ÓÚͨÓÃRAM£¨random-access memory£¬ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ