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

JAVAʵÏÖÑéÖ¤Âë

Ò»¡¢Ö÷Òª¹¦ÄÜ£º

1¡¢Ö§³Ö´¿Êý×Ö¡¢´óд×Öĸ¡¢Ð¡Ð´×Öĸ£¬¼°Á½Á½»ìºÏ»òÈýÕß»ìºÏÀàÐÍÑéÖ¤Â룻
2¡¢Ö§³Ö×Ô¶¨ÒåÌØÊâ×Ö·ûÅųý£¨Èç0oOi1jI£©£»
3¡¢Ö§³ÖͼƬ¼°ÎÄ×ÖÁ½ÖÖÀàÐÍÑéÖ¤Â룻
4¡¢Ö§³Ö×Ô¶¨ÒåÑéÖ¤ÂëͼƬ´óС£»
5¡¢Ö§³Ö×Ô¶¨Òå¸ÉÈÅÏßÌõÊý£»
6¡¢Ö§³Ö×Ô¶¨Òå¼°Ëæ»ú¶¨ÒåͼƬ¡¢ÎÄ×Ö¡¢¸ÉÈÅÏßÑÕÉ«£»

ÆäËû£ºÊ¾ÀýÒ³ÃæÌṩÁË<iframe>ºÍ<img>Á½ÖÖÒ³ÃæÏÔʾÑéÖ¤ÂëµÄ·½Ê½¡£
a¡¢½ö°¢À­²®Êý×Ö
¶þ¡¢Ö÷Òª´úÂë
1.index.jsp
<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort() + path + "/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
    <head>
        <title><%=basePath%></title>
    </head>
  <script type="text/javascript">
    var req;
 
    //Ìá½»ÁôÑÔ
    function pubMsg(){
        msgTitle   = document.msgForm.msgTitle.value;
        msgContent = document.msgForm.msgContent.value;
        verifyCode = document.msgForm.verifyCode.value;
     
        //¼ì²éÊäÈëÄÚÈݸñʽ
        if(msgTitle.length<5||msgContent.length<5){
            alert("±êÌâºÍÄÚÈݲ»ÄÜÉÙÓÚ5¸ö×Ö·û");
            return;
        }
        if(verifyCode.length==0){
       


Ïà¹ØÎĵµ£º

JavaÖм¯ºÏÈÝÆ÷ÀàListºÍSetµÄÓ÷¨

ListµÄÓ÷¨
List°üÀ¨List½Ó¿ÚÒÔ¼°List½Ó¿ÚµÄËùÓÐʵÏÖÀà¡£ÒòΪList½Ó¿ÚʵÏÖÁËCollection½Ó¿Ú£¬ËùÒÔList½Ó¿ÚÓµÓÐCollection½Ó¿ÚÌṩµÄËùÓг£Ó÷½·¨£¬ÓÖÒòΪListÊÇÁбíÀàÐÍ£¬ËùÒÔList½Ó¿Ú»¹ÌṩÁËһЩÊʺÏÓÚ×ÔÉíµÄ³£Ó÷½·¨£¬Èç±í1Ëùʾ¡£
±í1  List½Ó¿Ú¶¨ÒåµÄ³£Ó÷½·¨¼°¹¦ÄÜ
´Ó±í1¿ÉÒÔ¿´³ö£¬List½Ó¿ÚÌṩµÄÊʺÏÓÚ×ÔÉíµÄ ......

¹ØÓÚJava IOÁ÷ѧϰ×ܽá

Ò»¡¢IOÁ÷µÄÈýÖÖ·ÖÀ෽ʽ
    1.°´Á÷µÄ·½Ïò·ÖΪ£ºÊäÈëÁ÷ºÍÊä³öÁ÷
    2.°´Á÷µÄÊý¾Ýµ¥Î»²»Í¬·ÖΪ£º×Ö½ÚÁ÷ºÍ×Ö·ûÁ÷
    3.°´Á÷µÄ¹¦Äܲ»Í¬·ÖΪ£º½ÚµãÁ÷ºÍ´¦ÀíÁ÷
    ¶þ¡¢IOÁ÷µÄËÄ´ó³éÏóÀࣺ
    ×Ö·ûÁ÷£ºReader Writer
    × ......

java×é¼þÖ®ÖØÁ¿¼¶ÓëÇáÁ¿¼¶Çø±ð

ÇáÁ¿¼¶×é¼þÊÇÓÃJAVA´úÂë»­³öÀ´µÄ,ÕâÑù¾ßÓÐÆ½Ì¨ÒÆÖ²ÐÔ¡£
¡¡¡¡ ÖØÁ¿¼¶×é¼þÊǵ÷ÓòÙ×÷ϵͳµÄº¯Êý»­³öÀ´µÄ×é¼þ,±ÈÈçÖ÷´°Ìå¡£
¡¡¡¡ Ò»°ãÀ´Ëµ¾¡Á¿ÓÃÇáÁ¿¼¶µÄ×é¼þ,ÕâÑù¶Ô³ÌÐòµÄÒÆÖ²ÐԺܺã¬Ò»°ãjavax.swing°üÀïµÄ×é¼þ´ó²¿·ÖÊÇÇáÁ¿¼¶µÄjava.awtÀïÃæµÄÊÇÖØÁ¿¼¶µÄ¡£
¡¡¡¡ SwingÊÇÓÉ100%´¿JavaʵÏֵģ¬Swing×é¼þÊÇÓÃJavaʵÏÖ ......

javaÖÐStringÓëStringBufferµÄÇø±ð

ÔÚjavaÖÐÓÐ3¸öÀàÀ´¸ºÔð×Ö·ûµÄ²Ù×÷¡£
 
1.Character ÊǽøÐе¥¸ö×Ö·û²Ù×÷µÄ£¬
 
2.String ¶ÔÒ»´®×Ö·û½øÐвÙ×÷¡£²»¿É±äÀà¡£
 
3.StringBuffer Ò²ÊǶÔÒ»´®×Ö·û½øÐвÙ×÷£¬µ«ÊǿɱäÀà¡£
 
String:
ÊǶÔÏó²»ÊÇԭʼÀàÐÍ.
Ϊ²»¿É±ä¶ÔÏó,Ò»µ©±»´´½¨,¾Í²»ÄÜÐÞ¸ÄËüµÄÖµ.
¶ÔÓÚÒѾ­´æÔÚµÄString¶ÔÏóµÄÐÞ¸ ......

javaÖеÄClassLoader

ClassLoaderÒ»¸ö¾­³£³öÏÖÓÖÈúܶàÈËÍû¶øÈ´²½µÄ´Ê£¬±¾ÎĽ«ÊÔͼÒÔ×îdzÏÔÒ×¶®µÄ·½Ê½À´½²½â ClassLoader£¬Ï£ÍûÄܶԲ»Á˽â¸Ã»úÖÆµÄÅóÓÑÆðµ½Ò»µãµã×÷Óᣠ
ÒªÉîÈëÁ˽âClassLoader£¬Ê×ÏȾÍÒªÖªµÀClassLoaderÊÇÓÃÀ´¸ÉʲôµÄ£¬¹ËÃû˼Ò壬Ëü¾ÍÊÇÓÃÀ´¼ÓÔØClassÎļþµ½JVM£¬ÒÔ¹©³ÌÐòʹÓõġ£ÎÒÃÇÖªµÀ£¬java³ÌÐò¿ÉÒÔ¶¯Ì¬¼ÓÔØÀඨÒå£ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ