¸ø´ó¼Òдһ¸öjavaµÄ¼òµ¥µÄÕ»
import java.util.*;
public class stack
{
private List list=new ArrayList();
private int index=0;
public void push(Object obj)
{
list.add(index,obj);
index++;
}
public Object pop()
{
index--;
return list.get(index);
}
}
ÒÔÉϾÍÊÇÒ»¸ö±È½Ï¼òµ¥µÄÕ»À²£¡ÖÁÓÚÆäËû¹¦ÄÜ£¡´ó¼ÒÊÔ×ÅȥʵÑ飡Èç¹ûÓ⻶®µÄ¿ÉÒÔÁôÑÔ£¡¾¡Á¦°ïÄã½â¾ö
Ïà¹ØÎĵµ£º
2010-04-26 22:36
import java.util.Scanner;
public class _calendar {
public static void main(String[] args) {
// TODO Auto-generated method stub
System.out.println("ÇëÊäÈëÄê·Ý£º");
Scanner sc = new Scanner(System.in);
int year = sc.nextInt(); ......
תÔØ×Ô£ºhttp://blog.csdn.net/seaward/archive/2008/11/26/3376511.aspx
ÓÃgoogleÕÒµ½¹ýÀÏÍâдµÄÏà¹ØµÄÎÄÕ£¬µ«ÊDz»ÍêÕû¡£¸ù¾Ý×Ô¼ºµÄʵ¼ùÖØÐÂдһ¸ö¡£
¼ÙÉ裺ÎÒÃÇÏÖÓÐÒ»¸öjava project½Ð×öoldWebApp£¬Ò»¸öDynamic Web Project½Ð×ödynaWebApp¡£
1¡¢ÔÚoldWebAppµÄ¸ùĿ¼ÏÂÕÒµ½²¢´ò¿ª.projectÎļþ£¬Ð޸ijÉ
<?xml ver ......
JAVA¶ÔÏóת»»ÎªXML¸ñʽ
¼òµ¥µÄ²üÊöÏÂÈçºÎ½«JAVA¶ÔÏóת»»ÎªXML¸ñʽ£¬ÏêϸÁ˽âÇë½øÈëhttp://xstream.codehaus.org/tutorial.html
JAVABEAN¶ÔÏó
userInfo.java
private String name;
& ......
ת×Ô http://www.bjtarena.com/html/2010/4/1058.htm
ºÜ¶àÅóÓÑÔÚÉîÈëµÄ½Ó´¥JavaÓïÑÔºó¾Í»á·¢ÏÖÕâÑùÁ½¸ö´Ê£º·´Éä(Reflection)ºÍÄÚÊ¡(Introspector)£¬¾³£¸ã²»Çå³þÕâµ½µ×ÊÇÔõô»ØÊ£¬ÔÚʲô³¡ºÏÏÂÓ¦ÓÃÒÔ¼°ÈçºÎʹÓã¿
¡¡¡¡·´Éä
¡¡¡¡Ïà¶Ô¶øÑÔ£¬·´Éä±ÈÄÚÊ¡¸üÈÝÒ×Àí½âÒ»µã¡£ÓÃÒ»¾ä±È½Ï°×µÄ»°À´¸ÅÀ¨£¬·´Éä¾ÍÊÇÈÃÄã¿ÉÒÔͨ¹ýÃû³ÆÀ ......
¼øÓÚÐí¶àͬѧ¶ÔÕâ¸ömain·½·¨µÄÃÔ»ó£¡ÎÒÕâÀïÌṩһЩÒâ¼û£¬Ï£Íû¶Ô´ó¼ÒÓаïÖú£¡ºÇºÇ£¡
****ÎÒÃÇ˵¼ÓÔØÏÈ£º
JavaµÄÀàÊÇÓõ½²Å¿ªÊ¼¼ÓÔصģ¬²¢ÇÒÔÚÿ¸öÀàµÄ¹¹ÔìÆ÷µ÷ÓÃ֮ǰ£¬ÀàµÄÿ¸öÓò£¨³ÉÔ±±äÁ¿£©¶¼ÒªÊ×Ïȱ»±àÒëÆ÷³õʼ»¯Ò»´Î£¬È»ºó²ÅÂÖµ½¹¹ÔìÆ÷À´¸É»î¶ù¡£µ«ÊÇ£¬Java ......