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

×Ô¼ºÊ¹ÓÃjava×öµÄС¹¤¾ß


µ±ÄãÔÚÄã×Ô¼ºµÄµçÄÔÉÏ×°µÄ¶«Î÷±È½Ï¶àµÄʱºò£¬¶øÇÒÖ´ÐгÌÐòÓкÜÂÒ£¬ÈÃÄãÒ²ºÜ²»ºÃÕÒ£¬ÏÂÃæÕâ¸öÊÇÎÒÓÃjavaдµÄÒ»¶ÎС³ÌÐò£¬Ö±½ÓÔÚÄãµÄÔËÐд°¿ÚÊäÈë java open ??¾Í¿ÉÒÔ´ò¿ªÄã×Ô¼ºµÄÏëÒªµÄ»·¾³»òÕß¹¤¾ßÁË
import java.io.IOException;
import java.util.HashMap;
import java.util.Map;
public class open {
 public static void main(String [] s){
  
  Map m=new HashMap();//ʹÓÃmap¼¯ºÏ
  m.put("cb","C:/Program Files/Kingsoft/PowerWord_Oxford/XDict.exe");//ͨ¹ý¼üÖµÀ´±£´æÄã¿ÉÖ´ÐгÌÐòµÄÎïÀí·¾¶
  m.put("360","C:/Program Files/360/360safe/360Safe.exe");
  m.put("flash","C:/Program Files/Macromedia/Flash 8/Flash.exe");
  m.put("d8","C:/Program Files/Macromedia/Dreamweaver 8/Dreamweaver.exe");
  m.put("flash","C:/Program Files/ipmsg/ipmsg.exe");
  m.put("netBeans","C:/Program Files/NetBeans 6.5.1/bin/netbeans.exe");
  m.put("php","C:/Program Files/Zend/Zend Studio for Eclipse - 6.1.2/ZendStudio.exe");
  String ss=s[0];//³ÌÐòÆô¶¯Ê±¸ø³ÌÐò²ÎÊý¸³Öµ
  try { 
   Runtime.getRuntime().exec((String)m.get(ss));//µ÷ÓóÌÐò
  
  } catch (IOException e) {
   System.out.println("³ÌÐòÔËÐдíÎó");
  }
  
 }
 
}
²»¹ýÕâ¸öÓÃjavaд»¹ÊDZȽϲ»ºÃÓõģ¬Ò»»áÎÒ¿´¿´ÔÚÓÃC#дһ¸öÕâÑùµÄС³ÌÐò


Ïà¹ØÎĵµ£º

JavaʵÏÖµÄ3D¼ÆËã»úͼÐÎÀà¿âÓëÒýÇæ

¿çƽ̨ÈýάͼÐοª·¢¹¤¾ß°üJava 3D
    ¹Ù·½Ö÷Ò³£ºhttps://java3d.dev.java.net/
    Java 3DÑϸñ×ñÑ­“½¨Ä££­»æÖÆ”·ºÐÍ¡£³¡¾°Í¼£¨scene graph£©µÄ³éÏóÄ£Ðͱ»ÓÃÀ´×éÖ¯ºÍά»¤ÐéÄⳡ¾°ÖеĿÉÊǶÔÏó¼°ÆäÐÐΪ¡£³¡¾°Í¼°üº¬ÁËÐéÄâͼÐÎÊÀ½çµÄÈ«²¿ÐÅÏ¢£¬Java 3D»æÖÆÒýÇæ»á¶Ô³¡¾°Í¼½øÐÐ×Ô ......

Java»ñȡϵͳӲÅ̺ÍÄÚ´æʹÓÃÇé¿ö£»

ʹÓÃÀàjava.io.File
1.»ñȡϵͳӲÅÌÐÅÏ¢£º
public static String getDiskInfo() {
StringBuffer sb=new StringBuffer();
File[] roots = File.listRoots();// »ñÈ¡´ÅÅÌ·ÖÇøÁбí
for (File file : roots) {
long totalSpace=file.getTotalSpace();
long freeSpace=file.getFreeSpace();
long usa ......

JAVA±íµ¥×Ô¶¨ÒåµÄÉèÏëÓëºÃ´¦

˵µ½OAϵͳ¾Í»áÏëµ½·¢²¼¹«¸æ¡¢ÉóÅúÎļþ¡¢Îļþ¹ÜÀíµÈµÈÕâЩ¹¦ÄÜ£¬£¬µ½ÁË¿ª·¢ÈËÔ±ÊÖÀï¾ÍÊÇ´æ´¢Êý¾Ý¡¢²éѯÊý¾Ý£¬ÍùÍù²»Í£µÄ×öÖظ´¹¤×÷£¬ÓÚÊǾÍÓÐÁËOA±íµ¥ÒýÇæµÄÉèÏëºÍ¹¹Ë¼¡£ÓÃjavascript¶¨Òå±íµ¥£¬ÓÃjavaÇý¶¯XML£¬×Ô¶¯´´½¨¡¢ÐÞ¸ÄÊý¾Ý¿â¡£ÊµÏÖ¶Ô±íµ¥µÄͼÐλ¯ÖÆ×÷£¬¼´Ê¹ÊǷǼ¼ÊõÈËÔ±Ò²¿ÉËæÒâÉè¼Æ³ö×Ô¼º¹¹ÏëµÄ±íµ¥¹¦ÄÜ¡£
JAVA³ÌÐ ......

Object Ordering java ÅÅÐò

Object Ordering
A List l may be sorted as follows.
Collections.sort(l);
If the List consists of String elements, it will be sorted into alphabetical order. If it consists of Date elements, it will be sorted into chronological order. How does this happen? String and Date both implement the Compara ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ