javaÖÐÈçºÎ°ÑÒ»¸öarray¸´ÖƵ½arrayListÀï
public static void main(string[] args)
{
int[] arrayInt=new int[] {1,2,3,4,5}
ArrayList alist =ArrayList();
//·½·¨Ò»
foreach(int i in alist)
{
alist.Add(i);
}
Console.WrliteLine(al[2].ToString());//Êä³ö
//·½·¨¶þ ArrayList.Adapter ·½·¨ÊÇΪÌض¨µÄList ´´½¨ArrayList°ü×°
ArrayList alist2=new ArrayList();
alist2=ArrayList.Adapter(arrayInt);
Console.WriteLine(alist2[2].ToString());//Êä³ö
//·½·¨ÈýÄæÏòת»»
Array resultArr=(int[] )alist2.ToArray(tyoeof(int));
Console.WriteLine(resulArr.GetValue(2));//Êä³ö3
}
×î³£Ó÷¨
string[] arrA = new string[]{"ѧ","Ï°","ÖÐ"};
ArrayList arrB = new ArrayList();
foreach(string a in arrA)
{
arrB.Add(a);
}
foreach (string b in arrB)
{
Console.Write(b);
}
Ïà¹ØÎĵµ£º
¸ö ÈË ¼ò Àú
ÐÕ Ãû£º
ÍõÖ¾¹ú
ÐÔ ±ð£º
ÄÐ
Äê Á䣺
23Ëê
ÁªÏµµç»°£º
13124799190
ר Òµ£º
¼ÆËã»ú¼¼Êõ
¹¤×÷ʱ¼ä£º
Ò»ÄêÒÔÉÏ
ѧ Àú£º
´óר
ÓÊ Ï䣺
andy478168@yeah.net
¡ï ÇóÖ°ÒâÏò
¹¤×÷ÐÔÖÊ ......
ADFÖлñµÃÊý¾Ý¿âÁ¬½Ó£¬¶ÁÈ¡xmlÎļþµÄÊý¾Ý£¬²¢½«Æäдµ½Êý¾Ý¿âÖУº
public static void main(String[] argv) throws Exception {
//»ñµÃÇý¶¯
Class driverClass = Class.forName("oracle.jdbc.OracleDriver");
&nb ......
°ücommons-net-1.4.1.zip
import org.apache.commons.io.IOUtils;
import org.apache.commons.net.ftp.FTPClient;
import com.eduvideotv.util.Global;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
import java.io.FileOutputStream;
/**
* Apache commons-net ÊÔÓ ......
http://lavasoft.blog.51cto.com/62575/18920
JavaÒì³£´¦Àí×ܽá
Òì³£´¦ÀíÊdzÌÐòÉè¼ÆÖÐÒ»¸ö·Ç³£ÖØÒªµÄ·½Ã棬ҲÊdzÌÐòÉè¼ÆµÄÒ»´óÄѵ㣬´ÓC¿ªÊ¼£¬ÄãÒ²ÐíÒѾ֪µÀÈçºÎÓÃif...else...À´¿ØÖÆÒì³£ÁË£¬Ò²ÐíÊÇ×Ô·¢
µÄ£¬È»¶øÕâÖÖ¿ØÖÆÒ쳣ʹ¿à£¬Í¬Ò»¸öÒì³£»òÕß´íÎóÈç¹û¶à¸öµØ· ......
ÔÚÃüÁîÐнçÃæÓÃnative2ascii¹¤¾ß
1.½«ºº×ÖתΪUnicode:
C:\Program Files\Java\jdk1.5.0_04\bin>native2ascii
²âÊÔ
\u6d4b\u8bd5
2.½«Unicodeת»»Îªºº×Ö:
C:\Program Files\Java\jdk1.5.0_04\bin>native2ascii -reverse ......