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

¸ø´ó¼Òдһ¸ö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);
       }
}
ÒÔÉϾÍÊÇÒ»¸ö±È½Ï¼òµ¥µÄÕ»À²£¡ÖÁÓÚÆäËû¹¦ÄÜ£¡´ó¼ÒÊÔ×ÅȥʵÑ飡Èç¹ûÓв»¶®µÄ¿ÉÒÔÁôÑÔ£¡¾¡Á¦°ïÄã½â¾ö


Ïà¹ØÎĵµ£º

JavaÕýÔò±í´ïʽһ

¹Ø¼ü×Ö: java regex, regular expression
ÕýÔò±í´ïʽÔÚ´¦ÀíÎı¾·½ÃæÓô¦·Ç³£´ó£¬×îÔçÏñÔÚPerlºÍawkÓïÑÔÖУ¬ÌṩÁËÕâÖÖ»úÖÆ£¬JavaÔÚJava 2ÖÐÒ²Ôö¼ÓÁËÕýÔò±í´ïʽÕâ¸ö°üjava.util.regex¡£Õâ¸ö°üΪÓû§Ê¹ÓÃÕýÔò±í´ïʽ£¬ÌṩÁËÒ×ÓöøÈ«ÃæµÄÖ§³Ö¡£ÎÒµÄÑо¿·½ÏòÊÇwebÍÚ¾ò¡£´ÓÍøÒ³ÖÐÌáÈ¡ÄÚÈÝ,´¦ÀíÎı¾£¬µ±È»ÐèÒªÕýÔò±í´ïʽÕâ¸öÇ¿´ ......

Java UDPͨѶ³ÌÐòÉý¼¶°æ

×î½üÒ»Ö±ÔÚдC#µÄUDPͨѶ·½ÃæµÄ³ÌÐò£¬³é¿Õ°ÑÒÔǰдµÄJavaµÄUDPͨѶ³ÌÐòÄóöÀ´×öÁËһЩÉý¼¶µÄÐ޸쬰ÑÒÔǰһЩ²»×ãµÄµØ·½×öÁ˸͝£¬Í¬Ê±Ê¹ÓÃexe4jÈí¼þ±àÒë³ÉexeÎļþ£¬Èí¼þЧ¹ûÈçÏÂËùʾ£º
ͬʱ°Ñ´úÂëÌù³öÀ´£¬ÒÔ¹©´ó¼ÒÖ¸µãÒ»¶þ¡£
Main.java(Ö÷º¯Êý)
/*
 * To change this template, choose Tools | Templates
  ......

ÓÃJavaʵÏÖÎļþ·Ö¸î\ºÏ²¢²Ù×÷

import java.io.File;
import java.io.FilenameFilter;
import java.io.IOException;
import java.io.RandomAccessFile;
import java.sql.Timestamp;
import java.util.Arrays;
public class SmallToBig {
 private String newFileName;// ÐÂÎļþÃû×Ö
 private String filterName;// ¹ýÂ˹æÔòÃû×Ö
  ......

Lombok Ïû³ýJavaµÄÈß³¤


  LombokÊÇÒ»¸ö¿ªÔ´ÏîÄ¿£¬¿ÉÒÔÓÃÀ´Ïû³ýJava´úÂëµÄÈß³¤
  Ïêϸ½éÉܲο´http://www.ibm.com/developerworks/opensource/library/os-lombok/index.html
  ÏÂÃæ½éÉÜLombokÈçºÎÏû³ýJava´úÂëµÄÈß³¤¡£
1.      Ê×ÏÈÈ¥http://projectlombok.org/. ÏÂÔØlombok.jar °ü
2.  & ......

javaÖеÄmainÄãÖªµÀÂð

   Èç¹ûÄãÈ¥ÃæÊÔµÄʱºò£¬ÃæÊÔ¹Ù¿¼Ä㣬ΪʲôҪÔÚjavaÖеÄmain·½·¨Ç°¼Ópublic static voidÕâЩÐÞÊηû£¬ÄãÖªµÀÈçºÎÈ¥»Ø´ðÂð£¿ÏÂÃæÎÒΪ´ó¼Ò½²½âһϰɣ¡Èç¹ûÓÐʲôȱ©µÄ»°£¡»¶Ó­´ó¼ÒµÄÖ¸µã£¡
   Ê×ÏÈ£¬ÎªÊ²Ã´ÒªÓÃpublic£º
   ÒòΪÔÚÔËÐгÌÐòʱ£¬jvmÒªµ÷ÓÃmain·½·¨£¬µ«ÎÒÃǶ¼Ó¦¸ÃÖªµÀjvm ......
© 2009 ej38.com All Rights Reserved. ¹ØÓÚE½¡ÍøÁªÏµÎÒÃÇ | Õ¾µãµØÍ¼ | ¸ÓICP±¸09004571ºÅ