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

javaµÝ¹éʵÀý

 example£º Çó5µÄ½×³Ë¡£¡£

ÈçÏ£º

public class Test {
static int multiply(int n){
if(n==1||n==0)
return n;
else
return n*multiply(n-1);
}

public static void main(String[] args){
System.out.println(multiply(10));
}
}


ÉÏÃæµÄmultiplyÊÇÒ»¸ö½×³ËµÄÀý×Ó¡£ÆäʵµÝ¹éµÝ¹é£¬´Ó×ÖÃæÉϽâÊ;ÍÊÇÔÚ·½·¨±¾Éíµ÷ÓÃ×Ô¼ºµÄ·½·¨£¬»òÕß¼ä½Óµ÷Ó㻿´ÉÏÃæµÄ³ÌÐò£¬ÄÃmultiply(5)À´Ëµ£º
n=5;Ö´ÐÐ 5*multiply(4);
--------------------
Õâʱºò¿´multiply(4)
n=4 Ö´ÐÐ 4*multiply(3);
-------------------
¿´multiply(3)
n=3,Ö´ÐÐ 3*multiply(2);
---------------
mulitply(2);
n=2 Ö´ÐÐ 2*mulitply(1);
Õâʱºò£¬return 1;ÍùÉÏ·µ»Ø
2*1ÏòÉÏ·µ»Ø
3*(2*1)ÏòÉÏ·µ»Ø
4*£¨3*£¨2*1£©£© ÏòÉÏ·µ»Ø
5*£¨4*£¨3*£¨2*1£©£© £© = 120
ËùÒÔ³ÌÐòÊä³ö120;
Õâʼòµ¥µÄµÝ¹éµÄÀý×Ó£»ËùÒÔ¿ÉÒÔ¿´³öÀ´µÝ¹éµÄ¹Ø¼üµÃÓеݹé³ö¿Ú(±¾ÌåµÄIfÓï¾ä)£¬»¹Óеݹ鷽·¨£»


Ïà¹ØÎĵµ£º

ʹÓà IBM Rational ClearQuest Java API ½øÐм¯³É¿ª·¢

 Ô¤±¸ÖªÊ¶
¡¡¡¡±¾½Ì³ÌÕë¶ÔʹÓùý Rational ClearQuest Test Management µÄÈËÔ±¡£ÐèÒªÄãÁ˽â CQTM ÖеĻù±¾¸ÅÄî¡£ÁíÍâÄã×îºÃÁ˽â Eclipse£¬µ«²»ÊDZØÐèµÄ¡£
¡¡¡¡ÏµÍ³ÐèÇó
¡¡¡¡Äú¿ÉÒÔ°²×° IBM WebSphere Integration Developer À´ÔËÐб¾ÎÄÖеÄʾÀý³ÌÐò¡£
¡¡¡¡Rational ClearQuest Test Manager£¨CQTM£©¼ò½é
¡¡
¡¡Ä¿ ......

Axis2 java WebServices¿ª·¢ÈýPOJO

»·¾³JDK1.5
Eclipse 3.2
Ö±½ÓÉÏ´úÂ룺Èç¹ûûÓÐÅäÖúû·¾³Çë²Î¿´Ç°Á½ÆªÈÕÖ¾
·þÎñÆ÷¶Ë´úÂë
UserÀࣺ
/*
*Class User.java
*Create Date: 2009-11-4
*Author:a276202460
*/
package com.axis.pojo.test;
public class User implements java.io.Serializable{
public boolean equals(Object obj) {
if (obj == ......

cookie¼¼ÊõÔÚJava MEƽ̨µÄÓ¦ÓÃÓëʵÏÖ

ת×Ô£º http://www.j2medev.com/Article/ShowArticle.asp?ArticleID=4465 
CookieÔÚWebÓ¦ÓóÌÐòÖб»¹ã·º²ÉÓã¬Î¬»¤ä¯ÀÀÆ÷ºÍ·þÎñÆ÷Ö®¼äµÄ״̬¡£Òź¶µÄÊÇÕâÒ»ÌØÐÔÔÚJava MEƽ̨Öв¢Ã»Óеõ½Ö§³Ö¡£Òò´Ë£¬ÒªÏëά³Ö¿Í»§¶ËºÍ·þÎñÆ÷¶ËµÄ״̬Ôò±ØÐëʹÓÃURLÖØÐ´µÄ·½Ê½¡£URLÖØÐ´²Ù×÷ÆðÀ´±È½ÏÂé·³£¬ËùÒÔÑо¿Ò»ÏÂcookieµÄÔ­Àí²¢ÔÚ ......

Java Card ¼¼Êõ(¶þ)

 
±¾ÏµÁÐÎÄÕÂµÄµÚ 1 ²¿·Ö½éÉÜÁË Java Card ¼¼ÊõµÄ¸ß¼¶ÖªÊ¶ —— ʲôÊÇÖÇÄÜ¿¨¡¢Java Card Ó¦ÓóÌÐòµÄÔªËØ¡¢Í¨ÐźͲ»Í¬ Java Card ¼¼Êõ¹æ·¶µÄ»ã×Ü¡£ÔÚ±¾²¿·ÖÖУ¬ÎÒÃǽ«Öصã½éÉÜ Java Card applet µÄ¿ª·¢£º¿ª·¢ Java Card Ó¦ÓóÌÐò¡¢Sun Java Card ¿ª·¢¹¤¾ßÏä¡¢Java Card ºÍ Java Card RMI API ʱËùÐèµÄÒ»°ã² ......

Java Card ¼¼Êõ(Èý)

 ¡¡Java Card Ó¦ÓóÌÐòµÄÔªËØ
¡¡¡¡Çë¼Çס£¬Java Card Ó¦ÓóÌÐò²¢²»ÊǶÀÁ¢µÄ£¬¶øÊǶ˵½¶ËÓ¦ÓóÌÐòµÄÒ»²¿·Ö:
ͼ 1. Java Card Ó¦ÓóÌÐòµÄµäÐÍ×é¼þ
¡¡¡¡Java Card Ó¦ÓóÌÐòͨ³£ÓÉÒÔϲ¿·Ö×é³É£º
¡¡¡¡Ìṩºǫ́·þÎñ£¨ÀýÈç±£´æÔÚÊý¾Ý¿âÖеݲȫ»òÕßµç×ÓÖ§¸¶ÐÅÏ¢£©·ÃÎ浀 ºǫ́ӦÓóÌÐò¡£ÈçºÎ¿ª·¢ºǫ́ӦÓóÌÐò³¬³öÁ˱¾Îĵ ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ