JAVA LIST ±éÀú
¶ÔListµÄ±éÀúÓÐÈýÖÖ·½Ê½
List<A> list = new ArrayList<A>();
list.add(new A());
list.add(new A());
...
µÚÒ»ÖÖ:
for(Iterator<A> it = list.iterator(); it.hasNext(); ) {
....
}
ÕâÖÖ·½Ê½ÔÚÑ»·
Ö´Ðйý³ÌÖлá½øÐÐÊý¾ÝËø¶¨, ÐÔÄÜÉÔ²î, ͬʱ,Èç¹ûÄãÏëÔÚÑ°»¶¹ý³ÌÖÐÈ¥µôij¸öÔªËØ,Ö»Äܵ÷ÓÃit.remove·½·¨, ²»ÄÜʹÓÃlist.remove·½·¨, ·ñÔòÒ»¶¨³ö²¢·¢·ÃÎʵĴíÎó.
µÚ¶þÖÖ:
for(A a : list) {
.....
}
ÄÚ²¿µ÷ÓõÚÒ»ÖÖ, »»ÌÀ²»»»Ò©, ÕâÖÖÑ»··½Ê½»¹ÓÐÆäËûÏÞÖÆ, ²»½¨ÒéʹÓÃËü
µÚÈýÖÖ:
for(int i=0; i<list.size(); i++) {
A a = list.get(i);
...
}
ÄÚ²¿²»Ëø¶¨, ЧÂÊ×î¸ß, µ«Êǵ±Ð´¶àÏß³ÌʱҪ¿¼ÂDz¢·¢²Ù×÷µÄÎÊÌâ!
±¾ÎÄÀ´×ÔCSDN²©¿Í£¬×ªÔØÇë±êÃ÷³ö´¦£ºhttp://blog.csdn.net/love_leve/archive/2008/11/25/3367888.aspx
Ïà¹ØÎĵµ£º
Èç¹ûÄãÔø¾ÓùýPerl»òÈκÎÆäËûÄÚ½¨ÕýÔò±í´ïʽ֧³ÖµÄÓïÑÔ£¬ÄãÒ»¶¨ÖªµÀÓÃÕýÔò±í´ïʽ´¦ÀíÎı¾ºÍÆ¥ÅäģʽÊǶàô¼òµ¥¡£Èç¹ûÄã²»ÊìϤÕâ¸öÊõÓÄÇô“ÕýÔò±í´ïʽ”£¨Regular Expression£©¾ÍÊÇÒ»¸ö×Ö·û¹¹³ÉµÄ´®£¬Ëü¶¨ÒåÁËÒ»¸öÓÃÀ´ËÑË÷Æ¥Åä×Ö·û´®µÄģʽ¡£
Ðí¶àÓïÑÔ£¬°üÀ¨Perl¡¢PHP¡¢Python¡¢JavaScriptºÍJScript£¬¶¼Ö ......
sqlserverÊý¾Ý¿â£ºjavaÁ¬½Ósqlserver2005Êý¾Ý¿âÐĵÃÌå»á
Ê×ÏȵÃÏÂÔØÇý¶¯³ÌÐòµ½Î¢ÈíÍøÕ¾ÏÂÔØMicrosoft SQL Server 2005 JDBC Driver 1.2¡¡¡¡½âѹMicrosoft SQL Server 2005 jdbc driver1.2.exe
µÃµ½sqljdbc.jar£¬ÓõÃʱºòÖ±½Ó¼Óµ½classpathÖÐÈ¥.
¡¡ÉèÖÃSQL Server·þÎñÆ÷
·ÀÖ¹³öÏÖ
com.mi ......
1.ʹÓÃHttpClient
Óõ½µÄjarÎļþ£ºcommons-httpclient-3.1.jar
·½·¨£º
Ô¤Ïȶ¨ÒåºÃSoapÇëÇóÊý¾Ý£¬¿ÉÒÔ½èÖúÓÚXMLSpy ProfessionalÈí¼þÀ´×öÕâÒ»²½Éú³É¡£
String soapRequestData = "<?xml version=\"1.0\" encoding=\"utf-8\"?>" +
"<soap12:Envelope xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instanc ......