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

Java д Access ÂÒÂë

Java д Access
1.       ÔÚ±¾µØÖÐÎļÆËã»úÉÏ£¬·¢ÏÖдÖÐÎĵ½accessÉÏ£¬³öÏÖÂÒÂë¡£¶ÁµÄʱºòÒ²ÊÇÂÒÂë¡£
2.       ¶ÁµÄʱºò£¬²»ÄܶÁstring£¬ÏÈʹÓÃbyte¶Á³öÀ´£¬È»ºóÔÙ´´½¨GBK±àÂëµÄString.
3.       ²Î¿¼¶Á£¬¿ÉÄÜдµÄʱºòÒ²ÊDZàÂëת»»µÄÎÊÌ⣬ËùÒÔÒ»Ö±ÔÚ×ö±àÂëת»»£¬¿ÉÊÇÎÞÂÛÈçºÎÒ²²»ÄÜÕýȷдÈë¡£
4.       ¿¼ÂÇÊÇ·ñÊÇ»·¾³ÓÐÎÊÌâ¡£´Ónetbeans6.7.1תÒƵ½ÁËeclipse3.4.2¡£ÎÊÌâÒÀ¾É¡£
5.       µ½ÁíÍâµÄ»úÆ÷ÉÏÈ¥ÊÔÁË£¬ÓкÍÎÒ»úÆ÷ÏÖÏóÏàͬµÄ£¬Ò²ÓÐÕý³£µÄ¡£¼ÈÈ»ÓÐÕý³£µÄ£¬ÄÇô»¹ÊÇ¿ÉÄÜÓÐЩÉèÖá£
6.       ·ÖÎöÁ˰ѹ¤³ÌתΪUTF-8»òÕßGBKʵ¼ÊûÓйØϵ£¬ÒòΪÕâÖ»ÊÇÓ°ÏìjavacµÄ±àÒë¡£Ö»ÒªÔÚjavacµÄʱºòÖ¸¶¨ÁËencoding£¬ÄÇô±àÂë¾ÍûÓйØϵÁË¡£¿ÉÊÇ£¬¹¤³ÌÖ¸¶¨ÎªGBKµÄʱºò£¬²âÊÔ³ÌÐò»¹ÊÇÕý³£ÁË£¬µ«ÊÇ£¬ÎÒÓõÄswing£¬ÆäÇ°¶ËÊÇUTF-8µÄ£¬¶øÇÒÎҵijÌÐòÐèÒª¿¼ÂÇÖÐÈÕÎÄ£¬ËùÒÔÎÒ»¹ÊÇҪʹÓÃUTF-8¡£
7.       ·¢ÏÖ¿ØÖÆ̨ÉÏÖ±½ÓʹÓÃjavaÃüÁ¿ÉÒÔÕý³££¬µ«ÊÇͬÑùµÄµ½IDEÀïÃæ¾Í²»Õý³£¡£¿ØÖÆ̨µÄ±àÂëÊÇGBK¡£
8.       EclipseÀïÃ棬¹¤³ÌÊÇUTF-8£¬µ«ÊÇRun configurations->common->console encodingÀïÃ棬ÓÐÒ»¸öÉèÖ㬰ÑËüÉèΪGBK¾ÍOKÁË¡£
9.       NetbeansÀïÃæûÓÐÕâ¸ö£¬¿ªÊ¼¿¼ÂÇÔÚnetbeans.confÀïÃæʹÓÃ-J-Duser.languageÕâÑùµÄ²ÎÊý£¬µ«ÊÇÆäʵÎÒµÄIDE±¾À´¾ÍÊÇÖÐÎÄÁË£¬ÕâÑù×öûÓÐÒâÒå¡£
10.   ×îºó·¢ÏÖÆäʵÊDZ¾µØJVMµÄ²ÎÊý£¬ÔÚnetbeansÀïÃæµÄÊôÐÔ->ÔËÐÐ->VMÑ¡ÏîÀïÉèÖÓ-Dfile.encoding=GBK”¾ÍOKÁË¡£
×ܽ᣺
¸Ð¾õ¾ÍÊÇÓÐ2¸ö±àÂëÐèÒªÎÒÃÇ¿¼ÂÇ£¬Ò»¸öÊDZàÒëʱºòµÄ£¬Ò»¸öÊÇÔËÐÐʱºòµÄ¡£±àÒëʱºòµÄÆäʵӰÏì±È½ÏС£¬Ö÷Òª¾ÍÊÇΪÁ˹ú¼Ê»¯µÄ×¢Ê͵ȵȣ»»¹ÓÐÔËÐÐʱ£¬¸Ð¾õ¾ÍÊÇODBCдAccessÐèҪʹÓÃÖÐÎĵĻ·¾³¡£


Ïà¹ØÎĵµ£º

java µ÷ÓÃmysql¿Í»§¶Ëµ¼È룬µ¼³öÊý¾Ý

 ×î½üÓöµ½Ò»¸öÐèÇóÒªÔÚlinuxÏÂÓÃjava µ÷ÓÃmysql¿Í»§¶ËÔ¶³ÌµÇ½mysql·þÎñÆ÷£¬´Ó¿Í»§¶Ë»úÆ÷µ¼Èëmysql½Å±¾£¬´Ómysql·þÎñÆ÷¶Ëµ¼³ö±íÖеÄÊý¾Ý¡£ÒÔÏÂÊÇÓõ½µÄÖ÷Òª·½·¨£º
Java ´úÂë 
/**  
 * µ¼ÈëÊý¾Ý  
  * @param  ½Å±¾µÄµØÖ·ºÍÃû³Æ  
 * @return ÊÇ·ñ³ ......

Serializable javaÐòÁл¯

Bean Serializable Interface µÄ½Ó¿ÚÈÃBEAN¿ÉÒÔ´®Ðл¯£¬½«Æä±ä³ÉÒ»¸ö¿É±£´æΪÒÔºóʹÓõĶþ½øÖÆÁ÷¡£µ±Ò»¸öBEAN±»ÏµÁл¯µ½´ÅÅÌÉÏ»òÕßÆäËûÈκεط½£¬Æä״̬±»±£´æÆðÀ´£¬ÆäÖеÄÊôÐÔÖµÒ²²»»á¸Ä±ä¡£ÔÚBEANµÄ¹æ·¶ÖУ¬JSP²¢Ã»ÓÐÒªÇóBEANʵÏÖSerializable½Ó¿Ú¡£µ«ÊÇ£¬Èç¹ûÄúÏ£Íû×Ô¼º¿ØÖÆÄúËù´´½¨µÄ×é¼þµÄserialization½ø³Ì£¬»òÕßÄúÏë ......

³£¼ûË㷨ѧϰ¼°ÆäJavaʵÏÖ

package org.bupt.test;
import java.util.ArrayList;
class MyResource {
    ArrayList<Integer> arrList= new ArrayList<Integer>();
    public MyResource(ArrayList<Integer> arrList) {
        this.arrList = arrList;
&nbs ......

AndroidÖи÷ÖÖJAVA°üµÄ¹¦ÄÜÃèÊö

AndroidÖи÷ÖÖJAVA°üµÄ¹¦ÄÜÃèÊö
2009-09-29 13:05
ÔÚAndroidµÄÓ¦ÓóÌÐò¿ª·¢ÖУ¬Í¨³£Ê¹ÓõÄÊÇJAVAÓïÑÔ£¬³ýÁËÐèÒªÊìϤJAVAÓïÑԵĻù´¡ÖªÊ¶Ö®Í⣬»¹ÐèÒªÁ˽âAndroidÌṩµÄÀ©Õ¹µÄJAVA¹¦ÄÜ¡£
ÔÚÒ»°ãµÄJAVAÓ¦ÓÃÖУ¬Èç¹ûÐèÓÃÒýÓûù´¡Àà¿â£¬Í¨³£ÐèҪʹÓÃÈçϵķ½Ê½£º
import javax.swing.*;
ÒÔÉÏ´úÂë±íʾÁËÒýÓÃJAVAµÄGUI×é¼þSwi ......

java¼Çʱ¾

³ÌÐòûʲôº¬½ðÁ¿£¬¸ßÊÖĪЦ¡£
package first;
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.io.BufferedReader;
import java.io.FileNotFoundException;
import java.io.FileReader;
import java.io.IOException;
import java.io.PrintWriter;
import java.util.*;
import ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ