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

JavaʹÓÃwinrar½âѹËõ

JAVA JDKÖеĽâѹËõËƺõ²»ÄܽâѹËõÎÒÃÇÊÖ¹¤Ñ¹ËõµÄRARÎļþ£¬Ö»ÄܽâѹJDKÖеÄAPIѹËõµÄRAR
ËùÒÔÏë³öÒÔÏÂÓÃWINRARÃüÁîÐз½Ê½µÄ½âѹËõ
package edu.nwpu.vcampus.util;
import java.io.File;  
 
public class ZipUtil {  
 
    public static final String winrarPath = "C:\\Program Files\\WinRAR\\WinRAR.exe";  
    public static boolean unzip(String zipFile) {  
        boolean bool = false;  
        File f=new File(zipFile);
        if(!f.exists())
        {
         return false;
        }
        String folder = f.getParent();
        System.out.println(folder);
        String cmd = winrarPath + " X " + zipFile + " "+folder; 
        //cmd="C:\\Program Files\\WinRAR\\WinRAR.exe X  D:\\a.rar D:\\a";
        System.out.println(cmd);    
            try {  
                Process proc = Runtime.getRuntime().exec(cmd);  
                if (proc.waitFor() != 0) {  
                    if (proc.exitValue() == 0) {  
                        bool = false;  
      


Ïà¹ØÎĵµ£º

JavaÐéÄâ»úѧϰ±Ê¼ÇÒ»£ºÌåϵ½á¹¹

µÚÒ»ÕÂ.     JAVAÌåϵ½á¹¹½éÉÜ
µÚÒ»½Ú       ΪºÎʹÓÃJava:ƽ̨Î޹أ¬°²È«£¬ÍøÂçÒƶ¯ÐÔ
µÚ¶þ½Ú       Ìåϵ½á¹¹
1.          
JAVAÐéÄâ»úµÄ»ù±¾½á¹¹Í¼£º
2.    & ......

[ת]Oracle ¹«²¼ Java ·¢Õ¹²ßÂÔ


¼×¹ÇÎÄÒѾ­Íê³ÉÁ˶ÔSUN¹«Ë¾µÄÊÕ¹º£¬ÓÚ1ÔÂ27ÈÕ·¢²¼Á˶ÔSun¸÷ÏîÒµÎñµÄÕûºÏ¹æ»®¡£×ÜÌåÉÏ˵£¬OracleÒª³ÉΪÈíÓ²¼þÒ»Ì廯µÄÕûÌå½â¾ö·½°¸µÄ³§ÉÌ¡£ ÒÔϾÍÆä¶Ô±¸ÊܹØ×¢µÄJava·½ÃæµÄ²ßÂÔ×ö¸ö½éÉÜ¡£
Java SE:
1£©ÍƳöJDK SE 7£¬ Ëü½«°üÀ¨¶à¸öÐµĹ¦ÄÜ£¬ÈçÌá¸ß¿ª·¢ÈËÔ±µÄЧÂÊ£¬Ìṩ¸ßÐÔÄÜ£¬¶Ô¶àºËоƬµÄÖ§³ÖµÈ¡£
2£©SunµÄHotSp ......

java´´½¨Xml±Ê¼Ç


ÓÃjava´´½¨XmlµÄ4´óÀࣺ
 
Element£º½ÚµãÀà
AttributeÊôÐÔÀà
Document£ºÖ¸µÄ¾ÍÊÇÎĵµÀà
XMLOutput£ºÊä³öÀà
´ËÀàÊÇÓÃjava½¨Á¢Ò»¸öxmlÎļþ
 
public class TestJdom {
    //´´½¨XML£¨Ä£ÐÍ£©dom
    public static void main(String[] args) {
     ......

ٲȻÒѾ­·ÏµôÁË£¨ÖØмñÆðJava£©

·ÏÁË¡£2ÄêûÕý¾­ÓùýJavaÁË¡£ÎªÁË°ïÅóÓÑæ±ØÐëÈ«²¿¼ñÆðÀ´¡£BT¼Æ»®±»ÆÈÔÝÍ£¡£
»¹ÊǺÃÄÔ×Ó²»ÈçÀñÊÍ·¡£
¼ÇÏÂÀ´£º
Java»·¾³±äÁ¿ÉèÖãº
http://blog.csdn.net/aneka/archive/2008/09/19/2948209.aspx
ѧϰ Java ¿ª·¢µÄµÚÒ»²½¾ÍÊǹ¹½¨¿ª·¢»·¾³£¬ÏÂÃæÒÔ JDK6.0 ÔÚ Windows XP ÉϵݲװÅäÖÃΪÀýÀ´½²Êö£º
µÚÒ»²½£ºÏÂÔØ JDK
´ ......

java Timer ѧϰ

TimerλÓÚjava.utilÏÂÃ棬һ°ã½ÐËûjava¼ÆʱÆ÷¡£
javaAPIµÄ½âÊÍÈçÏÂ:
Ò»ÖÖÏß³ÌÉèÊ©£¬ÓÃÓÚ°²ÅÅÒÔºóÔÚºǫ́Ïß³ÌÖÐÖ´ÐеÄÈÎÎñ¡£¿É°²ÅÅÈÎÎñÖ´ÐÐÒ»´Î£¬»òÕ߶¨ÆÚÖظ´Ö´ÐС£
ÏÈÀ´¿´¿´Ð§¹û£º
1.Éè¼Æ¼ÆʱÆ÷ 
import java.io.IOException;
import java.util.Calendar;
import java.util.Timer;
public class TimerTest {
......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ