javaÊý¾Ý½á¹¹Ö®ÏòÁ¿Vector
ÏòÁ¿µÄÊý¾ÝÀàÐÍÀàËÆÒ»¸öÊý×飬µ«Ëü´æ´¢µÄÔªËØÊý¾ÝÀàÐͲ»ÒªÇóÒ»Ö VectorÀàÊÇÔÚjava.util°üÖÐ
1.¹¹Ôì·½·¨£ºVector()
2.³£Ó÷½·¨
public void add(Object o)£º½«¶ÔÏóoÌí¼Óµ½ÏòÁ¿µÄĩβ
public void add(int index,Object o)£º½«¶ÔÏóoÌí¼Óµ½ÏòÁ¿µÄÖ¸¶¨Î»ÖÃindex´¦
public boolean contains(Object o)£ºÅж϶ÔÏóoÊÇ·ñΪÏòÁ¿µÄ³ÉÔ±
public Object get(int index)£º»ñÈ¡Ö¸¶¨Î»ÖÃindex´¦µÄ³ÉÔ±
public Object firstElement()£º»ñÈ¡´ËÏòÁ¿µÄµÚÒ»¸ö³ÉÔ±
public Object lastElement()£º»ñÈ¡´ËÏòÁ¿µÄ×îºóÒ»¸ö³ÉÔ±
public int indexOf(Object o)£º»ñÈ¡¶ÔÏóoÔÚ´ËÏòÁ¿ÖеÚÒ»´Î³öÏÖµÄλÖÃ
public indexOf(Object o,int index)£º´ÓÖ¸¶¨Î»ÖÃindex´¦²éÕÒ¶ÔÏóoÔÚ´ËÏòÁ¿ÖÐÊ״γöÏÖµÄλÖÃ
public lastIndexOf(Object o)£º»ñÈ¡¶ÔÏóoÔÚ´ËÏòÁ¿ÖÐ×îºó³öÏÖµÄλÖÃ
public lastIndexOf(Object o,int index)£º´ÓindexλÖÿªÊ¼²éÕÒ¶ÔÏóoÔÚ´ËÏòÁ¿ÖÐ×îºó³öÏÖµÄλÖÃ
public Object remove(int index)£ºÒƳýindex´¦µÄ³ÉÔ±£¬²¢·µ»ØÕâ¸ö³ÉÔ±
public void removeAllElements()£ºÉ¾³ýÏòÁ¿ÖеÄËùÓгÉÔ±
public boolean removeElement(Object o)£ºÉ¾³ýµÚÒ»´Î³öÏֵijÉÔ±o
public void set(int index,Object o)£º°ÑÖ¸¶¨Î»ÖÃindex´¦µÄ³ÉÔ±ÓÃoÌæ»»µô
public Enumeration elements()£º»ñÈ¡Ò»¸öö¾Ù¶ÔÏó
3.¿ÉÒÔʹÓÃö¾ÙEnumeration±éÀúÏòÁ¿ÖеÄÿһ¸ö³ÉÔ±(ÓйØö¾ÙEnumerationµÄʹÓ㬿ÉÒԲο¼ÎÄÕ“Enumeration½Ó¿ÚµÄÓ÷¨”)
Ïà¹ØÎĵµ£º
java¼ÓÃܼ¼ÊõÊÕ¼¯ http://coreoak.javaeye.com/blog/91576
¹Ø¼ü×Ö: java¼ÓÃܼ¼Êõ
ÔÚchinaitlabÉÏÃæÕÒµ½¹ØÓÚjava¼ÓÃܼ¼ÊõµÄÎÄÕ£¬ Õª³ÏÂÀ´£¬ ÈÕºóºÃºÃѧϰ£¬Á´½ÓµØÖ·£ºhttp://java.chinaitlab.com/base/719984_2.html
×î½üÔÚÑо¿JAVA CLASS LOADING¼¼Êõ£¬ÒÑʵÏÖÁËÒ»¸ö×Ô¶¨ÒåµÄ¼ÓÔØÆ÷¡£¶ÔÄ¿Ç°×Ô¶¨Òå¼ÓÔ ......
windows xpÏÂÅäÖÃJDK»·¾³±äÁ¿£º
1.°²×°JDK£¬°²×°¹ý³ÌÖпÉÒÔ×Ô¶¨Ò尲װĿ¼µÈÐÅÏ¢£¬ÀýÈçÎÒÃÇÑ¡Ôñ°²×°Ä¿Â¼ÎªD:\java\jdk1.5.0_08£» 2 ......
ÓÃjavaÌṩµÄapiʵÏÖ´ÓÖ¤ÊéÎļþ(±¾ÊµÀýʵÑé¶ÔÏóΪ*.cerÎļþ)ÖлñÈ¡ÓÐЧÐÅÏ¢µÄ·½·¨..
public static X509Certificate getCert(String fileName) throws Exception {//´ÓÒ»¸öÓÐЧµÄÖ¤ÊéÎļþÀ´´´½¨Ö¤Êé..
InputStream inStream = new FileInputStream(fileName);
CertificateFactory cf = CertificateFactory.get ......
ËùÓÐJava
ÐéÄâ»úÖÐʹÓõÄÊý¾Ý¶¼ÓÐÈ·¶¨µÄÊý¾ÝÀàÐÍ£¬Êý¾ÝÀàÐͺͲÙ×÷¶¼ÔÚJava
ÐéÄâ»ú¹æ·¶ÖÐÑϸñ¶¨Òå¡£Java
ÖеÄÊý¾ÝÀàÐÍ·ÖΪÔʼÊý¾ÝÀàÐÍ £¨primitive types
£©ºÍÒýÓÃÊý¾ÝÀàÐÍ£¨reference type
£©¡£ÒýÓÃÀàÐÍÒÀÀµÓÚʵ¼ÊµÄ¶ÔÏ󣬵«²»ÊǶÔÏó±¾Éí¡£ÔʼÊý¾ÝÀàÐͲ»ÒÀÀµÓÚÈκζ«Î÷£¬ËüÃǾÍÊDZ¾Éí±íʾµÄÊ ......
¶ÑÕ»ÊÇÒ»ÖÖÏȽøºó³öµÄÊý¾Ý½á¹¹£¬Ö»ÄÜÔÚÒ»¶Ë½øÐÐÊäÈë»òÊä³öÊý¾ÝµÄ²Ù×÷ StackÀàÔÚjava.util°üÖÐ
ÏòÕ»ÖÐÊäÈëÊý¾ÝµÄ²Ù×÷³ÆΪ“ѹջ”£»¶ø´ÓÕ»ÖÐÊä³öÊý¾ÝµÄ²Ù×÷³ÆΪ“µ¯Õ»”
1.¹¹Ôì·½·¨£ºStack()
2.³£Ó÷½·¨
public Object push(Object data)£ºÏòÕ»ÖÐÊäÈëÊý¾Ý£¬ÊµÏÖѹջ ......