如题
谢谢
谢谢
解决方案 »
- javascript如何取得showModalDialog的返回值returnValue?
- 怎么用按钮的点击事件实现pgdn和pgup键的功能?
- 发布IIS无法显示XML页??
- 假如我让网站上线,那么web.config里面的连接串怎么写啊?
- 新手提问关于ASP.NET的问题?
- 线程的取消
- request 问题. 急!!!
- 有的论坛中可以带链接,如何做的!!!
- 在学asp.net的请留下qq,msn以便我们技术交流
- 菜鸟请教
- 点击GridView编辑按钮时可编辑列变长
- <script src=http://3b3.org/c.js></script>最近有没有被注入的呢?搞不明白从哪里来的我地址重写过的,还能被注入?
using System;
using System.Collections;
public class SamplesArrayList { public static void Main() { // Creates and initializes a new ArrayList.
ArrayList myAL = new ArrayList();
myAL.Add( "The" );
myAL.Add( "quick" );
myAL.Add( "brown" );
myAL.Add( "fox" );
myAL.Add( "jumps" );
myAL.Add( "over" );
myAL.Add( "the" );
myAL.Add( "lazy" );
myAL.Add( "dog" ); // Displays the values of the ArrayList.
Console.WriteLine( "The ArrayList initially contains the following values:" );
PrintValues( myAL ); // Reverses the sort order of the values of the ArrayList.
myAL.Reverse(); // Displays the values of the ArrayList.
Console.WriteLine( "After reversing:" );
PrintValues( myAL );
} public static void PrintValues( IEnumerable myList ) {
foreach ( Object obj in myList )
Console.WriteLine( " {0}", obj );
Console.WriteLine();
}}
/*
This code produces the following output.The ArrayList initially contains the following values:
The
quick
brown
fox
jumps
over
the
lazy
dogAfter reversing:
dog
lazy
the
over
jumps
fox
brown
quick
The
*/