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

java£ºµÝ¹é£º10µÄ½×³Ë

package game;
public class JieCeng {
 public static void main(String[] args){
  System.out.println(fun(10));
 }
 
 public static int fun(int n){
  if(1==n)
   return 1;
  System.out.println( n * fun(n-1));
  return n * fun(n-1);
 }
}


Ïà¹ØÎĵµ£º

JAVAÖÐÕýÔò±í´ïʽµÄÓ¦Óà (Ò»)

Jakarta-OROÕýÔò±í´ïʽ¿â
1£®¼ò½é£º
Jakarta-OROÊÇ×îÈ«ÃæÒÔ¼°ÓÅ»¯µÃ×îºÃµÄÕýÔò±í´ïʽAPIÖ®Ò»£¬Jakarta-ORO¿âÒÔǰ½Ð×öOROMatcher£¬ÊÇÓÉDaniel F. Savarese±àд£¬ºóÀ´Ëû½«ÆäÔùÓëJakarta Project£¬¶ÁÕß¿ÉÔÚApache.orgµÄÍøÕ¾ ÏÂÔØ¸ÃAPI°ü¡£
Ðí¶àÔ´´úÂ뿪·ÅµÄÕýÔò±í´ïʽ¿â¶¼ÊÇÖ§³ÖPerl5¼æÈݵÄÕýÔò±í´ïʽÓï·¨£¬Jakarta-OROÕýÔ ......

java£º¾­µäÎļþдÈëºÍ¶ÁÈ¡£¬Ëٶȳ¬¿ì

package arrays.file;
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.FileReader;
import java.io.IOException;
import java.io.InputStreamRea ......

java£ºÊÖдMyArrayLisyµÄ³£Ó÷½·¨£¬Ôöɾ¸Ä²é

package arrays.myArray;
public class MyArrayList {
 private Object[] arrObj = new Object[3];
 private int size = 0;
 
 // ³¤¶È
 public int size() {
  return size;
 }
 // insert
 public void add(Object obj) {
  add(size,obj);
&nb ......

java£ºËÄÔò»ìºÏÔËË㣬ģÄâ΢ÈíµÄ¼ÆËãÆ÷

package arrays.myArray;
import java.util.Scanner;
public class SortObject {
 private static int intercePosition = 0; // ¼Ç¼µ¥¸öÔËËãÊý¾ÝµÄ³¤¶È
 private static int[] intercePositionIndex = null; // ¼Ç¼“£¨”µÄϱê
 private static int[] intercePositionEnd = null; // ¼Ç¼ ......

java£ºSetÑ­»·±éÀúµÄÁ©ÖÖ·½·¨Ê¹ÓÃ

package collection;
import java.util.*;
public class NewSet {
 public static void main(String[] args) {
  Set<Student> students = new HashSet<Student>();
  for (int i = 0; i < 6; i++) {
   students.add(new Student("Happy"+i,"male"+i,20+i)) ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ