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

Ì°³ÔÉßµÄËã·¨·ÖÎö(Java)


Ì°³ÔÉßµÄËã·¨·ÖÎö(Java)
 
Ì°³ÔÉßÊÇÒ»¿î·Ç³£¾­µäµÄÊÖ»úÓÎÏ·¡£ËüÓкܶàËã·¨£¬ÕâÀïÏêϸ·ÖÎöÒ»ÖֱȽÏÓÅÐãµÄËã·¨¡£
Ê×ÏȽéÉÜÏÂÖ÷ÒªÓõ½µÄÆ߸öÀࣺ
l          WormMain£º×îÖ÷ÒªµÄÀ࣬¿ØÖÆËùÓÐÆäËüÀàµÄÔËÐкÍÏú»Ù¡£
l          WormPit£º´¦Àí¼üÅÌÊäÈëʼþ²¢ÊµÀý»¯WormÀàºÍWormFoodÀàµÄ¡£
l          Worm£º³éÏóÁËÌ°³ÔÉßµÄÊôÐԺͶ¯×÷
l          WormFood£º³éÏóÁËʳÎïµÄÊôÐԺͶ¯×÷
l          WormScore£ºÓÃÀ´¼Í¼·ÖÊýµÄÀà
l          WormLink£º³éÏóÁËÉßÉíÉϵÄÒ»¶Î£¬±£´æÁËÕâ¶ÎµÄ×ø±ê¡¢·½ÏòºÍËùÓÐ״̬¡£
l          WormException£º´¦ÀíÒì³£Àà
»ù±¾¸ÅÄî½éÉÜ
½Ú£ºÒ»ÌõÉß¿ÉÒÔ¿´³ÉÓÐÐí¶àÕý·½ÐεēС¸ñ×Ӕƴ´Õ³É£¬ÎÒ°ÑËü³Æ×÷½Ú¡£½ÚÊÇÉßÉíÉÏ×îСµÄµ¥Î»¡£
¶Î£ºµ±Ðí¶à½ÚÁ¬³ÉÒ»ÌõÖ±Ïߣ¬ÎÒ³ÆËüΪ¶Î¡£ÉÏͼµÄÌ°³ÔÉßÖ»ÓÐÒ»¶Î£¬Èç¹ûËü¹ÕÍä¾Í±ä³ÉÁ½¶Î¡£
Á´±í£ºÓÃÀ´±£´æÿһ¶ÎµÄ״̬£¬Á´±íµÄÔªËص¥Î»ÊǶΡ£ÇÒÁ´±íµÄ×îºóÒ»¸öÔªËرíʾÉßµÄÍ·²¿¶Î¡£
×ø±êϵ£ºMIDPÖеÄ×ø±êÒÔ×óÉϽÇÄǵãΪ(0,0)£¬ÏòÓÒÔòxµÝÔö£¬ÏòÏÂÔòyµÝÔö¡£
WormÀà
Ò»ÌõÍêÕûµÄÌ°³ÔÉßÊÇÓÉÒ»¶ÎÒ»¶Î×é³ÉµÄ¡£Á´±íÖб£´æµÄµÚÒ»¸öÔªËØÊÇÉßµÄβ°Í¶Î£¬×îºóÒ»¸öÔªËØÊÇÉßµÄÍ·²¿¶Î¡£µ±ÉßÔ˶¯µÄʱºò£¬ËüÍ·²¿¶ÎÔö¼ÓÒ»½Ú¶øβ¶Î¼õÉÙÒ»½Ú¡£Èç¹ûËü³Ôµ½ÁËʳÎβ²¿¶Î¾Í²»¼õÉÙÒ»½Ú¡£Ò²¾ÍÊÇ˵£¬ÉßÊÇ´ÓÍ·²¿¶Î¿ªÊ¼³¤µÄ¡£ 
ÏÂÃæµÄ´úÂë¶ÎÏÔʾÁËWormÀà±£´æµÄ¸÷ÖÖÊôÐÔ£º
    /* Ì°³ÔÉß¿ÉÄÜÒƶ¯µÄ·½Ïò */
    public final static byte DOWN  = 2;
    public final static byte LEFT  = 4;
    public final static byte RIGHT = 6;
    public final static byte UP    = 8;
    // Ì°³ÔÉߵĵ±Ç°·½Ïò
    private byte currentDirection;
    // ±£´æÌ°³ÔÉßÿһ¶ÎµÄÁбí
    private Vector worm = new Vector(5, 2);
        


Ïà¹ØÎĵµ£º

java½«excelµ¥Ôª¸ñÊý¾Ýת»»³ÉsqlÓï¾ä

Ê×ÏÈÒªÓÐjxlÀà¿â¡£
³ÌÐòÈçÏ£º
import java.io.*;
import jxl.*;
public class ExcelToSql {
  public static void main(String args[])
  {
   try
   {
    Workbook book= Workbook.getWorkbook(new File("D:\\workspaceuse6\\foundation\\test\\com\\gres ......

java´æ´¢Í¼Æ¬µ½Êý¾Ý¿â

1   mysql´æ´¢´óÈÝÁ¿µÄ¶þ½øÖÆÎļþµÄ¸ñʽÊÇblob£¬Æäʵ³ýÁËͼƬ»¹¿ÉÒÔ´æ±ðµÄ
2   ÒªÏòÊý¾Ý¿â´æ´¢¶þ½øÖƵÄÎļþÒ»¶¨Òª°ÑÒª´æ´¢µÄÊý¾Ýת»»³É¶þ½øÖÆÁ÷
·Ï»°¾Í²»¶à˵ÁË£¬´ó¼Ò¿´¿´´úÂëºÜÈÝÒ×Ã÷°×£¬ÏÈÀ´¿´Ò»¸öapp³ÌÐò£¬µ±È»Ê×ÏÈÄúÒªÔÚÊý¾Ý¿âÖÐÏȽ¨Á¢Ò»¸öÓÃÓÚ±£´æͼƬµÄ±íºÍÏàÓ¦µÄÁУ¬Êý¾Ý¸ñʽΪblob
package ......

java jdbc ÊÂÎñ¹ÜÀí

ÇмǣºÎÞÂÛhibernate»¹ÊÇjdbcµÄÊÂÎñ¿ØÖƶ¼Ó¦ÔÚservice²ã!
jdbcÊÂÎñ¹ÜÀíÒª±£Ö¤service ²ãÓëdao²ãÊÇ»ùÓÚͬһ¸öConnection;
Ò²¾ÍÊÇ˵ÔÚservice²ãÀïµÃµ½Connection £¬DAOÖз½·¨ÒÔ²ÎÊýµÄÐÎʽµÃµ½Õâ¸öʵÀý¡£¡£
δÍê´ýÐø¡£¡£¡£ ......

ÎÒÓÃjava±»±ÉÊÓÁË

      ÎÒÔÚ¼ÆËã»úÐÐÒµºÍÎÒµÄͼ±êÒ»Ñù»¹Ö»ÊÇÒ»¸öСº¢£¬µ±ÎÒÔÚÄÃϼÆËã»ú4¼¶£¨Èí¼þ²âÊÔ¹¤³Ìʦ£©ºÍ±àдÁ˲»ÉÙµÄͦcoolµÄ³ÌÐòÖ®ºó£¬¾õµÃ
×Ô¼ºË®Æ½²»Àµ¹þ¡£½á¹û¸Õ¿çÈëÒ»¸ö´ó¹«Ë¾ÊµÏ°µÄʱºò£¬ÎÒ¿´µ½ÎÒµÄÄǸöÏîÄ¿£¬ºÜ¿ìÎÒ±à³ÌµÄ˼άÓÖÔÚÌø¶¯£¬¿É“ÀÏ´ó”À´ÁËÒ»¾äc/c++ʵÏÖ
£¬ÎҾͷ·ðµ½ÁËÒ»¸ ......

java ¶ÓÁÐʵÏÖ

¶ÓÁÐÆäʵ ËùÖ¸Éú»îÖÐÅŶӵÄÏÖÏó£¬È¥É̳¡¹ºÎ¸¶¿îʱÐèÒªÅŶӣ¬ Âò·¹Ê±ÐèÒªÅŶӣ¬ ºÃ¶àÊÂÇ鶼ÊÇÐèÒªÅŶӣ¬ ÅÅÔÚµÚһλµÄÔòÏÈ´¦Àí£¬½áÊøºó£¬ ºóÃæµÄÈ˶¼ÏñÇ°Òƶ¯Ò»Î»£¬ÔÚ¿ª·¢ÖÐÒ²ÓкöàÕâÑùµÄÊÂÇéÐèÒª´¦Àí£¬ÈçÎļþµÄÏÂÔØ£¬¶ÌÐŵķ¢Ë͹¦ÄÜ£¬ µÈÕâЩ¶¼ÊÇÐèÒª¶ÓÁз½Ê½ÊµÏÖ¡£ºÃÁË£¬ ·Ï»°²»¶à˵£¬ ÏêÇé¼ûÏÂÃæ´úÂ룡
package com. ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ