¹ØÓÚJAVA,JSPµÄ1¸öÎÊÌâ
×î½üÔÚѧJAVA£¬Á·Ï°µÄʱºòÓöµ½¸öÎÊÌ⣬Çë´ó¼Ò°ïæ¿´¿´……
Ö÷ÒªÎÊÌâÊÇ£¬ÔÚJSPÖÐûÓа취µ¼ÈëÎÒÏëÓõÄÀ࣬Ã÷Ã÷µ¼ÈëÁË°ü£¬È´±¨£ºMyDAO cannot be resolved to a type
JSP´úÂ룺
<%@ page contentType="text/html;charset=GBK"%>
<%@ page import="java.util.Date"%>
<%@ page import="java.text.SimpleDateFormat"%>
<%@ page import="family.yin.senqi.dao.MyDAO"%>
<%
Date ndate = new Date();
SimpleDateFormat s = new SimpleDateFormat("yyyy-MM-dd");
String recTime = s.format(ndate);
MyDAO dao = new MyDAO();
String indexid = dao.getIndexid(recTime);
if(indexid==null || "".equals(indexid)){
System.out.println("======now insert new recTime======");
dao.insertRecTime(recTime);
}
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=GBK">
<title>ÎÞ±êÌâÎĵµ</title>
</head>
<body topmargin="0" leftmargin="0" rightmargin="0">
<form name="myForm" method="post" action="">
<table width='100%' height='79' border='0' cellpadding='0' cellspacing='0' align=center>
<tr>
<td bgcolor='F9A859' valign='top'>
<table width='100%' height='50' border='0' align='center' cellpadding='0' cellspacing='0' bgcolor='FBEAD0'>
<tr>
<td align='center' style="font-size:22px;">СÐ͸öÈËÀí²Æϵͳ</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor='F9A859' valign='top'>
<table width='100%' border='0' align='center' cellpadding='0' cellspacing='
Ïà¹ØÎĵµ£º
Õ⼸ÌìµÄѧϰ ÈÃÎҸе½·¢ã£¬ÀÏʦ½²µÄºÜ¶à£¬×Ô¼º¾Í¸ù±¾ÎÞ·¨È¥Ë¼¿¼£¬Ö»ÄÜÒ»¸ö¾¢µÄÍùÀïÌý£¬×Ô¼º´úÂëÒ²²»Ôõô»á£¬ÀÏʦ½²¹ýµÄÄÜÓиöÓ¡Ïó£¬ ²»¹ý½ñÌ컹ºÃ£¬½²µ½ÁËJava»ù´¡¼ÓÇ¿£¬ÉÔ΢¸Ð¾õºÃµã£¬²¢²»ÊǺÜÄÑÀí½âÁË£¬½ñÌì¾Í¿ªÊ¼½ñÌì¿Î³ÌµÄ¸´Ï°ÁË£¬ÒªÏë½ø²½£¬Ö»ÓÐ×Ô¼º¼è¿àŬÁ¦À²£¡
È· ......
(1)JavaÖеÄÖ÷·½·¨public static void main(String args[])ΪʲôҪÓÃstaticÀ´ÐÞÊÎ
ÒòΪjavaÊÇÍêÈ«ÃæÏò¶ÔÏóÓïÑÔ,Õâ¸öÖ÷º¯ÊýÆäʵÊÇÒ»¸öÀàµÄ·½·¨,Õâ¸ö·½·¨ÔÚÀàûÓÐÉú³É¶ÔÏóµÄʱºò¾Í±ØÐë±»JVMµ÷ÓÃ,ËùÒÔËü±ØÐëÊǾ²Ì¬µÄ³ÉÔ±º¯Êý.
£¨2£©javaÓïÑÔÖеÄpublic static void main(String[] args) ×÷ÓÃÊÇʲô.Ëù×öµÄÊÂÇéÓÖÊÇʲ ......
ѧjavaÒѾÓÐÒ»¶Îʱ¼äÁË¡£Ñ§µÄ¶«Î÷²»¶à£¬µ«ÎÒûÏëµ½½ö½öÃæÏò¹ý³ÌµÄһЩ֪ʶ£¨Loops£©¾Í¿ÉÒÔ×ö³öÏñÎå×ÓÆåÕâÑùµÄÓÎÏ·£¬ÎÒ²»µÃ²»¸Ð̾javaÓïÑÔµÄ÷ÈÁ¦¡£ÌرðÊÇÁ˽⵽javaµÄÓ¦ÓÃÖ®¹â·º£¬Éæ¼°ÊÖ»ú£¬Ç¶Èëʽ¿ª·¢£¬pc£¬ÆóÒµ¼°·þÎñÆ÷µÈÖ®ºó£¬ÎÒ¸ü¼á¶¨ÁËѧϰjavaµÄ¾öÐÄ¡£µ«ÊÇÎÒÒ²µ£ÐÄ×Ô¼ºÑ§²»°¡ºÃ¡£ºÜ¶à¶«Î÷¶¼ÊÇÔÚÀÏʦµÄÀÏÁìµ¼ÏÂÍê³ÉµÄ£ ......
JavaÌṩÁËÊýÖÖ³ÖÓжÔÏóµÄ·½Ê½£¬°üÀ¨ÓïÑÔÄÚÖõÄArray£¬»¹ÓоÍÊÇutilitiesÖÐÌṩµÄÈÝÆ÷Àà(container
classes)£¬ÓÖ³ÆȺ¼¯Àà(collection classes)¡£¼¯ºÏÔÚjavaÖзdz£ÖØÒª£¬ÔÚÌÖÂÛ֮ǰ£¬ÏÈÀ´¿´¼¸¸öÃæÊÔÖеľµäÎÊÌâ¡£
1 Collection ºÍ
CollectionsµÄÇø±ð¡£
2 List, Set, MapÊÇ·ñ¼Ì³Ð×ÔCollection½Ó¿Ú¡£ ......
×÷ΪһÃû³ÌÐòÔ±£¬×ÜÒª¾Àú´ÓС¹æÄ£µÄ¾Ö²¿±àÂëת»»µ½´óÐÍÈí¼þÉè¼Æ¡¢¿ª·¢µÄ¹ý³Ì¡£Ôڴ˹ý³ÌÖУ¬ÔÚÊìϤÁ˱à³ÌÓïÑÔºó£¬ÐèÒª½«ÑÛ¹âÉÏÉýÒ»¸ö²ãÃ棬´ÓÕûÌåÈ¥°ÑÎÕÕû¸öÈí¼þµÄ¼Ü¹¹£¬Õë¶ÔÒ»¸öÐÐÒµµÄ¾ßÌåÒµÎñ£¬Äܹ»Éè¼ÆÒ»¸öºÏÀíµÄ¼Ü¹¹£¬Ìá¸ßÈí¼þµÄ¿É¿¿ÐÔ¡¢¿Éά»¤ÐÔ¡¢¿É¸´ÓÃÐÔ¡£¾ÍÏñһλ¾Ñé·á¸»µÄͬÊÂËùË ......