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

javaÔËÐÐÍⲿ³ÌÐò

public class RunExtraProgram {
 /**
  * @param args
  */
 public static void main(String[] args) {
  // TODO Auto-generated method stub
  try {
   Runtime.getRuntime().exec("D:\\Program Files\\TTPlayer\\TTPlayer.exe");
  } catch (Exception e) {
   // TODO: handle exception
   e.printStackTrace();
  }
 }
}


Ïà¹ØÎĵµ£º

javaÖеÄURLEncoderºÍURLDecoderÀà

[ת]http://www.java3z.com/cwbwebhome/article/article2/2414.html?id=1101
/*
     ÍøÒ³ÖÐµÄ±íµ¥Ê¹ÓÃPOST·½·¨Ìύʱ£¬Êý¾ÝÄÚÈݵÄÀàÐÍÊÇ application/x-www-form-urlencoded£¬ÕâÖÖÀàÐͻ᣺
1.×Ö·û"a"-"z"£¬"A"-"Z"£¬"0"-"9"£¬"."£¬"-"£¬"*"£¬ºÍ"_" ¶¼²»»á±»±àÂë;
2.½«¿Õ¸ñת»»Îª¼ÓºÅ (+) ;
3.½ ......

javaʵÏֵĻôÄɹæÔòµÄ¶àÏîʽ¼ÆËã

»ôÄɹæÔò¶àÏîʽ¼ÆËãÈç¹ûʹÓÃÆÓËصĶàÏîʽÇóÖµ£¬Ê±¼ä¸´ÔÓ¶ÈΪO(n*n)£¬¶øÊÇÓÃÁË»ôÄɹæÔò¿ÉÒÔʹÓõݹé»òÕßµü´úÀ´ÊµÏÖ£¬Ê±¼ä¸´ÔÓ¶ÈÊÇO(n),ÏÂÃæÊÇÔ´´úÂë:
/*
* ʵÏÖ»ôÄɹæÔòµÄ¶àÏîʽ¼ÆËãʱ¼ä¸´ÔÓ¶ÈΪO(N)
*/
public class HuonaRule {
public static void main(String args[])
{
double data[]=new double[]{1.0,2, ......

JAVA·´Éä¼¼ÊõʾÀý2 Method called

package javatest_danny;
import java.lang.reflect.*;
public class refectmethodtest {
 public static void main(String agrs[])
 {
    try
    {
          Class cmed=Class.forName("javatest_danny.baseclass");
&n ......

javaÃæÊÔÌâ»ã¼¯

JAVAÏà¹Ø»ù´¡ÖªÊ¶
1¡¢ÃæÏò¶ÔÏóµÄÌØÕ÷ÓÐÄÄЩ·½Ãæ   
1.³éÏó£º
³éÏó¾ÍÊǺöÂÔÒ»¸öÖ÷ÌâÖÐÓ뵱ǰĿ±êÎ޹صÄÄÇЩ·½Ã棬ÒÔ±ã¸ü³ä·ÖµØ×¢ÒâÓ뵱ǰĿ±êÓйصķ½Ãæ¡£³éÏó²¢²»´òËãÁ˽âÈ«²¿ÎÊÌ⣬¶øÖ»ÊÇÑ¡ÔñÆäÖеÄÒ»²¿·Ö£¬ÔÝʱ²»Óò¿·Öϸ½Ú¡£³éÏó°üÀ¨Á½¸ö·½Ã棬һÊǹý³Ì³éÏ󣬶þÊÇÊý¾Ý³éÏó¡£
2.¼Ì³Ð£º
¼Ì³ÐÊÇÒ»ÖÖÁª½ ......

Java½øÖÆת»»

¹Ø¼ü×Ö: java ½øÖÆת»»
Ê®½øÖÆת³ÉÊ®Áù½øÖÆ£º
Integer.toHexString(int i)
Ê®½øÖÆת³É°Ë½øÖÆ
Integer.toOctalString(int i)
Ê®½øÖÆת³É¶þ½øÖÆ
Integer.toBinaryString(int i)
Ê®Áù½øÖÆת³ÉÊ®½øÖÆ
Integer.valueOf("FFFF",16).toString()
°Ë½øÖÆת³ÉÊ®½øÖÆ
Integer.valueOf("876",8).toString()
¶þ½øÖ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ