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

¹ØÓÚjava¿ª·¢Óʼþ½ÓÊÕ³ÌÐòµÄÒ»µã×ܽá

 ÓÃjava¿ª·¢Óʼþ½ÓÊÕ³ÌÐòÐèÒªÓõ½javamail°ü£¬×ÊÔ´µØÖ·£ºhttp://java.sun.com/products/javamail/£¬×îаæÊÇ JavaMail 1.4.3 £¬ÏÂÔØµØÖ·ÊÇ£ºhttp://cds.sun.com/is-bin/INTERSHOP.enfinity/WFS/CDS-CDS_Developer-Site/en_US/-/USD/VerifyItem-Start/javamail-1.4.3.zip?BundledLineItemUUID=gqFIBe.oRjUAAAEl1r4xay_N&OrderID=t1BIBe.o3q4AAAElxL4xay_N&ProductID=J3tIBe.pJGsAAAElR5Jh6wjK&FileName=/javamail-1.4.3.zip¡£
ÀïÃæÓÐÁ½¸ö¹Ø¼üµÄjar°ü£¬·Ö±ðÊÇmail.jarºÍactivation.jar£¬Ò»¶¨Òª·ÅÔÚjavaĿ¼\jre\lib\extĿ¼ÀïÃæ£¬·ñÔò»áÔÚ±àÒëʱ±¨´í£¬´íÎóÐÅÏ¢ÈçÏ£º
ReceiveMail.java:10: package javax.mail does not exist
import javax.mail.*;
^
ReceiveMail.java:11: package javax.mail.internet does not exist
import javax.mail.internet.*;
ÏÂÃæÌù³öÀ´Ò»¸öÀý×Ó´úÂ룬¹©²Î¿¼£¨µ±È»ÄãÒ²¿ÉÒÔÍøÉϲ鵽£©
// java ÊÕÓʼþ³ÌÐò
import java.io.*;   
import java.text.*;   
import java.util.*;   
import javax.mail.*;   
import javax.mail.internet.*;   
  
/**  
* ÓÐÒ»·âÓʼþ¾ÍÐèÒª½¨Á¢Ò»¸öReciveMail¶ÔÏó  
*/  
public class ReceiveMailDemo {   
    private MimeMessage mimeMessage = null;   
    private String saveAttachPath = ""; //¸½¼þÏÂÔØºóµÄ´æ·ÅĿ¼   
    private StringBuffer bodytext = new StringBuffer();//´æ·ÅÓʼþÄÚÈÝ   
    private String dateformat = "yy-MM-dd HH:mm"; //ĬÈϵÄÈÕǰÏÔʾ¸ñʽ   
  
    public ReceiveMailDemo(MimeMessage mimeMessage) {   
        this.mimeMessage = mimeMessage;   
    }   
  
    public void setMimeMessage(MimeMessage mimeMessage) {   
        this.mimeMessage = mimeMessage;   
&n


Ïà¹ØÎĵµ£º

sql 2005 ´æ´¢¹ý³Ì·ÖÒ³ java ´úÂë

 create PROCEDURE pagelist
@tablename nvarchar(50),
@fieldname nvarchar(50)='*',         
@pagesize int output,--ÿҳÏÔʾ¼Ç¼ÌõÊý
@currentpage int output,--µÚ¼¸Ò³
@orderid nvarchar(50),--Ö÷¼üÅÅÐò
@sort int,--ÅÅÐò·½Ê½£¬1±íʾÉýÐò£¬0±íʾ½µÐòÅÅÁÐ ......

java ÕýÔò±í´ïʽ

  String str  = "[010101]+[010102]";
  String ss = "
  System.out.println(ss); //  \[010101]  
  [  ÊÇÌØÊâ×Ö·û£¬
  ÐèÒªÓ÷´Ð±¸Ü  \[  ¶ÔÆä½øÐÐתÒå
\\[010101]";  
  String ssss = "
\\ ......

javaʵÏÖµÄstack pop·½·¨Ð¡Ï¸½Ú

 Ç°Ð©Ìì±àС³ÌÐò£¬Ð´ÆäÖÐÓÐÒ»¸ö×Ô¼ºÊµÏÖµÄstackµÄpopÈçÏ£º
public class Stack<T>{
 
   private ArrayList<T>  list;
   public Stack(){
          list =  new ArrayList<T>();
}
    ......

java²¢·¢±à³Ìʵ¼ù±Ê¼Ç

 1, ±£Ö¤Ḭ̈߳²È«µÄÈýÖÖ·½·¨:
    a, ²»Òª¿çÏ̷߳ÃÎʹ²Ïí±äÁ¿
    b, ʹ¹²Ïí±äÁ¿ÊÇfinalÀàÐ͵Ä
    c, ½«¹²Ïí±äÁ¿µÄ²Ù×÷¼ÓÉÏͬ²½
2, Ò»¿ªÊ¼¾Í½«ÀàÉè¼Æ³ÉḬ̈߳²È«µÄ, ±ÈÔÚºóÆÚÖØÐÂÐÞ¸´Ëü,¸üÈÝÒ×.
3, ±àд¶àÏ̳߳ÌÐò, Ê×Ïȱ£Ö¤ËüÊÇÕýÈ·µÄ, Æä´ÎÔÙ¿¼ÂÇÐÔÄÜ.
4, ÎÞ×´Ì ......

java regexp

 public class Test2 {
public static void main(String[] args) {
// ¼òµ¥ÈÏʶÕýÔò±í´ïʽµÄ¸ÅÄî
/*
* p("abc".matches("...")); p("a8729a".replaceAll("\\d", "-")); Pattern
* p = Pattern.compile("[a-z]{3}"); Matcher m = p.match ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ