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

java ³õѧÕß µÚ¶þ¸öÎÊÌâ

1.н¨Ò»¸öservlet³ÌÐò£¬ÎļþÃûΪTest.java£¬ÎļþÄÚÈÝÈçÏ£º
package test;
import java.io.IOException;
import java.io.PrintWriter;
import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
public class Test extends HttpServlet {
protected void doGet(HttpServletRequest request, HttpServletResponse response)
throws ServletException, IOException {
PrintWriter out=response.getWriter();
out.println("<html><body><h1>This is a servlet test.</h1></body></html>");
out.flush();
}
}
2 .±àÒë
½«Test.java·ÅÔÚc:\testÏ£¬Ê¹ÓÃÈçÏÂÃüÁî±àÒ룺
C:\Test>javac Test.java
³ö´íÐÅÏ¢£º
HelloWorld.java:2: Èí¼þ°ü javax.servlet ²»´æÔÚ
import javax.servlet.*;
^
HelloWorld.java:3: Èí¼þ°ü javax.servlet.http ²»´æÔÚ
import javax.servlet.http.*;
^
HelloWorld.java:6: ÕÒ²»µ½·ûºÅ
·ûºÅ£º Àà HttpServlet
public class HelloWorld extends HttpServlet {
                                ^
HelloWorld.java:7: ÕÒ²»µ½·ûºÅ
·ûºÅ£º Àà HttpServletRequest
λÖ㺠Àà HelloWorld
    public void doGet(HttpServletRequest request, HttpServletResponse response)
                      ^
HelloWorld.java:7: ÕÒ²»µ½·ûºÅ
·ûºÅ£º Àà HttpServletResponse
λÖ㺠Àà HelloWorld
    public void doGet(HttpServletRequest request, HttpServletResponse response)
                                                  ^
HelloWorld


Ïà¹ØÎĵµ£º

Java ³£¼ûÉè¼Æģʽ

³£ÓõÄÉè¼Æģʽ·ÖΪÈçÏ 23 ÖÖģʽ£º
Abstract Factory£º
Ìṩһ¸ö´´½¨Ò»ÏµÁÐÏà¹Ø»òÏ໥ÒÀÀµ¶ÔÏóµÄ½Ó¿Ú£¬¶øÎÞÐèÖ¸¶¨Ëü
ÃǾßÌåµÄÀà¡£
Adapter£º
½«Ò»¸öÀàµÄ½Ó¿Úת»»³É¿Í»§Ï£ÍûµÄÁíÒ»¸ö½Ó¿Ú£¬Ê¹µÃÔ­À´ÓÉÓÚ½Ó¿Ú²»¼æÈݶø²»ÄÜÒ»Æð¹¤×÷µÄÄÇЩÀà¿ÉÒÔÒ»Æð¹¤×÷¡£
Bridge£º
½«
³éÏ󲿷ÖÓëËüµÄʵÏÖ²¿·Ö·ÖÀ룬ʹ֮¿ÉÒÔ¶ÀÁ¢±ä»¯¡ ......

UbuntuÏÂJAVA¿ª·¢»·¾³²¿Êð

°²×°¿ª·¢»·¾³
ubuntu9.10Ï°²×°JAVA¿ª·¢»·¾³Æäʵ»¹ÊDZȽϼòµ¥µÄ£¬ÎÒÃǾÍÒÔ°²×°³£ÓõÄjdk¡¢eclipse¡¢tomcat¡¢svn client£¨ÕÒµ½Ò»¸ö¿ÉÒÔºÍwindowsÖеÄСÎÚ¹êÀàËƵĵ«°²×°»¹ÓеãÎÊÌâ½â¾öºó»á²¹ÉÏ£©¡¢oracle clientΪÀý½²½²ÈçºÎ°²×°£¨±¾ÎÄÖÐ×Ô¶¯»¯°²×°½Å±¾ÏÂÔØhttp://download.csdn.net/source/2034239,ÎļþÌ«´ó·Ö³É6·Ý £©¡£Ç° ......

JAVA—¸Ð´¥

ѧµ½JAVAµÄÃæ¶Ô¶ÔÏ󣬷¢ÏÖÈç´ËÇ¿´ó£¡
ÍòÎï½Ô¶ÔÏó£¬ÍòÎïΪÎÒËùÓã¡
¶ÔJAVA²úÉúÇ¿ÁҵĺøУ¡
µ«¶ÔÓÚSun¹«Ë¾µÄÊÕ¹º£¬JAVA²»Öª»áÈçºÎ£¿
--------------------------------------------------
ÕâµÚһƪÎÄÕ£¬ÊÇÎÒÔÚCSDNµÄ¿ª¶Ë¡£
Ö®ºóÎÒ»á¸üÐÂÎҵIJ©¿Í£¬Ð´ÉÏһЩѧϰ¸ÐÊÜ¡£
Ï£ÍûÄÜÔÚÕâÀïÕÒµ½Ò»Æ¬ÐµÄÌìµØ£¡ ......

Java¿ª·¢ºËÐļ¼ÊõÃæÊÔÐĵ÷ÖÎö

JavaµÄÊý¾Ý½á¹¹ÓÐÄÄЩ£¿MapÓëSetµÄ±¾ÖÊÇø±ðÊÇʲô£¿
·ÖÎö£ºJava³£¼ûµÄÊý¾Ý½á¹¹ÓÐCollectionºÍMap£¬ÆäÖÐCollection½Ó¿ÚÏ°üÀ¨ListºÍSet½Ó¿Ú£¬ÆäÏÂÓÖÓжà¸öʵÏÖÀàÈçListÏÂÓÐArrayList¡¢LinkedListºÍVectorµÈʵÏÖÀ࣬SetÏÂÓÐHashSet¡¢LinkedSetµÈʵÏÖÀàºÍSortedSet½Ó¿Ú£¬HashSetÏÂÓÐLinkedHashSet×ÓÀ࣬SortedSet½Ó¿ÚÏÂÓÐTre ......

java¿ì »¹ÊÇ c¿ì[c++¿ì],ËÆÊǶø·ÇµÄ̸

    Ê×ÏÈ˵Ã÷Ò»ÏÂÕâ¸ö”¿ì”µÄº¬Òå,ÎÒÏëÒÔÇ°ÄÇЩÌÖÂÛÕâ¸ö»°ÌâµÄÈ˵±È»ÈÏΪÕâ¸ö¿ìÊÇÖ¸³ÌÐòµÄÔËÐÐËÙ¶È,ÖÁÓÚ”Èí¼þ¿ª·¢ËٶȔ¿ÖÅÂÏëҲûÏë,»òÐíÈÏΪÈí¼þ¿ª·¢ËٶȺÍÕâ¸ö»°Ì⳶²»ÉÏÒ»µã¹Øϵ.ÄÇôÕâ¸öÎÊÌâÔÚÍøÉÏËÑËÑ,ËѵÄÒ»´ó¶Ñ,ÄÇЩc/c++ÕóÓªµÄÁÐÁ˺ܶàÀý×ÓÀ´ËµÃ÷c/c++¿ì, javaÕóÓªµÄÒ²ÊÇÈç´ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ