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

ÓÃjavaÓïÑÔʵÏÖ°ËÊýÂëÎÊÌâ ¹ã¶ÈÓÅÏÈËÑË÷

·ÖÎå¸ö²¿·Ö ÎÒ¶ÔËûÃÇ´ò°üÁË ¿ÉÒÔ»¥Ïàµ÷ÓÃ
Ö÷º¯Êý²¿·Ö£º
eightnum.javaÎļþ£º
package com.ai;
import java.awt.*;
import java.util.ArrayList;
import java.util.Collections;
import java.applet.*;
import javax.swing.*;
public class EightNum {
 int[][] current;
 int[][] target;
 private JTextField textField_18;
 private JTextField textField_17;
 private JTextField textField_16;
 private JTextField textField_15;
 private JTextField textField_14;
 private JTextField textField_13;
 private JTextField textField_12;
 private JTextField textField_11;
 private JTextField textField_10;
 private JTextField textField_9;
 private JTextField textField_8;
 private JTextField textField_7;
 private JTextField textField_6;
 private JTextField textField_5;
 private JTextField textField_4;
 private JTextField textField_3;
 private JTextField textField_2;
 private JTextField textField;
 private JFrame frame;
 public static void main(String args[]) {
  EventQueue.invokeLater(new Runnable() {
   public void run() {
    try {
     EightNum window = new EightNum();
     window.frame.setVisible(true);
    } catch (Exception e) {
     e.printStackTrace();
    }
   }
  });
 }
 /**
  * Create the application
  */
 public EightNum() {
  
  current=new int[3][3];
  target=new int[3][3];
  createContents();
  
 }
 /**
  * Initialize the contents of the frame
  */
 private void createContents() {
  
  frame = new JFrame();
  frame.getContentPane().setLayout(new BorderLayout());
  frame.setTitle("A* ½â¾ö°ËÊýÂëµÄʵÏÖ");
&n


Ïà¹ØÎĵµ£º

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

"^\d+$"¡¡¡¡//·Ç¸ºÕûÊý£¨ÕýÕûÊý + 0£©
"^\[0-9\]*\[1-9\]\[0-9\]*$"¡¡¡¡//ÕýÕûÊý
"^((-\d+)\|(0+))$"¡¡¡¡//·ÇÕýÕûÊý£¨¸ºÕûÊý + 0£©
"^-\[0-9\]*\[1-9\]\[0-9\]*$"¡¡¡¡//¸ºÕûÊý
"^-?\d+$"¡¡¡¡¡¡¡¡//ÕûÊý
"^\d+(\.\d+)?$"¡¡¡¡//·Ç¸º¸¡µãÊý£¨Õý¸¡µãÊý + 0£©
"^((\[0-9\]+\.\[0-9\]*\[1-9\]\[0-9\]*)\|(\[0-9\]*\[1-9\]\[ ......

JavaÁ¬½Ó¸÷ÖÖÊý¾Ý¿âµÄÅäÖ÷½·¨

JavaÁ¬½Ó¸÷ÖÖÊý¾Ý¿âµÄÅäÖ÷½·¨MySQL
£ºString Driver="com.mysql.jdbc.Driver"
;  //Çý¶¯³ÌÐòString URL="jdbc:mysql://localhost:3306/db_name"
;  //Á¬½ÓµÄURL,db_nameΪÊý¾Ý¿âString Username="username"
;  //Óû§ÃûString Password="password"
;  / ......

JAVAģʽһ Adapter ¡¾×ª¡¿

JavaÓëģʽ£ºÊÊÅäÆ÷ģʽ
À´Ô´£¨http://lavasoft.blog.51cto.com/62575/90767£©
 
Ä¿µÄ£º
½«Ò»¸öÀàµÄ½Ó¿Úת»»³É¿Í»§Ï£ÍûµÄÁíÍâÒ»¸ö½Ó¿Ú¡£A d a p t e r ģʽʹµÃÔ­±¾ÓÉÓÚ½Ó¿Ú²»¼æÈݶø²»ÄÜÒ»Æð¹¤×÷µÄÄÇЩÀà¿ÉÒÔÒ»Æð¹¤×÷¡£
 
Òâͼ£º
ÄãÏëʹÓÃÒ»¸öÒѾ­´æÔÚµÄÀ࣬¶øËüµÄ½Ó¿Ú²»·ûºÏÄãµÄÐèÇó¡£
ÄãÏë´´½¨Ò»¸ö¿ÉÒ ......

ʹÓÃJAVA¼¼ÊõʵÏÖÐÂÒ»´úOSS/BSS

      OSS/BSSÊǵçÐÅÔËÓªÉ̵ÄÒ»Ì廯¡¢ÐÅÏ¢×ÊÔ´¹²ÏíµÄÖ§³Öϵͳ£¬ËüÖ÷ÒªÓÉÍøÂç¹ÜÀí¡¢ÏµÍ³¹ÜÀí¡¢¼Æ·Ñ¡¢ÓªÒµ¡¢ÕËÎñºÍ¿Í»§·þÎñµÈ²¿·Ö×é³É£¬ÏµÍ³¼äͨ¹ýͳһµÄÐÅÏ¢×ÜÏßÓлúÕûºÏÔÚÒ»Æð¡£Ëü²»½öÄÜÔÚ°ïÖúÔËÓªÉÌÖƶ©·ûºÏ×ÔÉíÌصãµÄÔËÓªÖ§³ÅϵͳµÄͬʱ°ïÖúÈ·¶¨ÏµÍ³µÄ·¢Õ¹·½Ïò£¬»¹ÄÜ°ïÖúÓû§Öƶ©ÏµÍ³µÄÕûºÏ±ê×¼ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ