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

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

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

}
/*
* dataΪ¶àÏîʽµÄϵÊýÊý×飬xΪֵ£¬nΪϵÊýÊý×éµÄ³¤¶È
* Y=a0+a1*X+a2*X^2+.....+an*X^n;
* Y=a0+X(a1+X(a2+X(a3+X(...))))
*/
public static double huonaFunction(double[] data,double x,int n)
{
double y=0;
int i=n-1;
while( i>=0 )
{
y=x*y+data[i];
i--;
}
return y;
}
}


Ïà¹ØÎĵµ£º

JavaµÄÈÝÆ÷ÀàVector¡¢ArrayList¡¢HashTableµÈ

ÏßÐÔ±í£¬Á´±í£¬¹þÏ£±íÊdz£ÓõÄÊý¾Ý½á¹¹£¬ÔÚ½øÐÐJava¿ª·¢Ê±£¬JDKÒѾ­ÎªÎÒÃÇÌṩÁËһϵÁÐÏàÓ¦µÄÀàÀ´ÊµÏÖ»ù±¾µÄÊý¾Ý½á¹¹¡£ÕâЩÀà¾ùÔÚjava.util°üÖС£±¾ÎÄÊÔͼͨ¹ý¼òµ¥µÄÃèÊö£¬Ïò¶ÁÕß²ûÊö¸÷¸öÀàµÄ×÷ÓÃÒÔ¼°ÈçºÎÕýȷʹÓÃÕâЩÀà¡£
Collection
©ÀList
©¦©ÀLinkedList
©¦©ÀArrayList
©¦©¸Vector
©¦¡¡©¸Stack
©¸Set
Map
©ÀHa ......

Java¶¨Ê±Æ÷

ÔÚÓ¦Óÿª·¢ÖУ¬¾­³£ÐèҪһЩÖÜÆÚÐԵIJÙ×÷£¬±ÈÈçÿ5·ÖÖÓÖ´ÐÐijһ²Ù×÷µÈ¡£ÔÚWEBÏîÄ¿ÖпÉÄÜÐèҪÿ¸ôÒ»¶Îʱ¼ä×Ô¶¯Éú³É¾²Ì¬Ò³£¬×Ô¶¯¼ì²âÊÇ·ñÓÐÐÂÓʼþ£¬¶¨Ê±×Ô¶¯±¸·ÝÎļþµÈ²Ù×÷¡£ÕâЩ¶¼¿ÉÒÔͨ¹ý¶¨Ê±Æ÷TimerÀ´½â¾ö¡£
ÕâÀï½öÌṩ¶¨Ê±Æ÷µÄ²¿·Ö·½·¨ºÍ˵Ã÷£¬¾²Ì¬Ò³Éú³ÉµÈ²Ù×÷¶ÁÕß¿ÉÒÔͨ¹ýÏà¹Ø·½·¨×ÔÐнâ¾ö¡£
¡£¡£¡£°Ù¶È¿Õ¼äÌù´úÂë×ÜÊ ......

0ÔªÔÂн ±±¾©ÇóÖ° Java¿ª·¢

  ÔÚ±±¾©´ôÁËÒ»¸öÔ¶àÁË£¬ÎªÁËÉú´æ£¬±Ê¼Ç±¾µçÄÔÒ²¼úÂôÁË£¬²»ÖªµÀ¹¤×÷ÕâôÄÑÕÒ¡£
 
  Ò»¸öÕý¾­µÄÃæÊÔҲûÓС£ 
  ÎÒ´Ó07Äê±ÏÒµÒѾ­ÀË·Ñ2Äêʱ¼äÁË£¬ÎÒÔ¸ÒâÓðëÄêµÄ0н³êÀ´»»È¡ÎÒÈëÐпª·¢£»
  Ï£Íû±±¾©Óй«Ë¾ÌṩÈÃÎÒʵÏÖ×ÔÎÒ¼ÛÖµµÄƽ̨¡£
  Èç¹ûÄú¶ÔÎÒµÄÄÜÁ¦ÓÐÒÉÎÊ£¬¹µÍ¨¿ÉÒÔÁ˽â ......

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.½ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØͼ | ¸ÓICP±¸09004571ºÅ