<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>中文Flex例子 &#187; 数组</title>
	<atom:link href="http://blog.minidx.com/tag/%e6%95%b0%e7%bb%84/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.minidx.com</link>
	<description>中文Adobe Flex例子,Flex实例教程,RIA资源,全文检索技术,算法和数据结构</description>
	<lastBuildDate>Thu, 31 Mar 2011 03:22:33 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Flex中如何利用Array.filter()事件从一个数组中移除重复项目的例子</title>
		<link>http://blog.minidx.com/2008/07/12/1069.html</link>
		<comments>http://blog.minidx.com/2008/07/12/1069.html#comments</comments>
		<pubDate>Sat, 12 Jul 2008 15:25:17 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[Array]]></category>
		<category><![CDATA[filter]]></category>
		<category><![CDATA[hasownproperty]]></category>
		<category><![CDATA[数组]]></category>
		<category><![CDATA[重复项目]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/07/12/1069.html</guid>
		<description><![CDATA[和前面的Flex中如何通过filterFunction属性对XMLListCollection进行筛选的例子类似的，接下来的例子演示了Flex中如何利用Array.filter()事件，从一个数组中移除重复项目。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里察看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;
&#160; &#160; &#160; &#160; layout=&#34;vertical&#34;
&#160; &#160; &#160; &#160; verticalAlign=&#34;middle&#34;
&#160; &#160; &#160; &#160; backgroundColor=&#34;white&#34;
&#160; &#160; &#160; &#160; creationComplete=&#34;init()&#34;&#62;
&#160;
&#160; &#160; &#60;mx:Script&#62;
&#160; &#160; &#160; &#160; &#60;![CDATA[
&#160; &#160; &#160; &#160; &#160; &#160; private var keys:Object = {};
&#160;
&#160; &#160; &#160; &#160; &#160; &#160; /**
&#160; &#160; &#160; &#160; &#160; &#160;&#160; * Called by the Application container's creationComplete
&#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/07/12/1069.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Flex中如何用getItemAt事件和数组访问操作符[]从ArrayCollection中获取数据显示的例子</title>
		<link>http://blog.minidx.com/2008/05/11/840.html</link>
		<comments>http://blog.minidx.com/2008/05/11/840.html#comments</comments>
		<pubDate>Sun, 11 May 2008 10:35:54 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[Flex]]></category>
		<category><![CDATA[ArrayCollection]]></category>
		<category><![CDATA[getItemAt]]></category>
		<category><![CDATA[操作符]]></category>
		<category><![CDATA[数组]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/05/11/840.html</guid>
		<description><![CDATA[对于ArrayCollection，我们也不陌生，Flex中如何重新设置DataGrid控件的排序的例子等几个例子中都用到了ArrayCollection类。接下来的例子演示了如何用getItemAt事件和数组访问操作符[]从ArrayCollection中获取特定数据并显示。
让我们先来看一下Demo（可以右键View Source或点击这里察看源代码）：









下面是完整代码(或点击这里查看)：
Download: main.mxml&#60;?xml version=&#34;1.0&#34; encoding=&#34;utf-8&#34;?&#62;
&#60;mx:Application&#160;xmlns:mx=&#34;http://www.adobe.com/2006/mxml&#34;
&#160; &#160; &#160; &#160; layout=&#34;vertical&#34;
&#160; &#160; &#160; &#160; verticalAlign=&#34;middle&#34;
&#160; &#160; &#160; &#160; backgroundColor=&#34;white&#34;&#62;
&#160;
&#160; &#160; &#60;mx:ArrayCollection&#160;id=&#34;arrColl&#34;&#62;
&#160; &#160; &#160; &#160; &#60;mx:source&#62;
&#160; &#160; &#160; &#160; &#160; &#160; &#60;mx:Array&#62;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#60;mx:Object&#160;label=&#34;Student A&#34; score=&#34;85&#34; /&#62;
&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#60;mx:Object&#160;label=&#34;Student B&#34; score=&#34;48&#34; /&#62;
&#160; &#160; &#160; &#160; &#160; [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/05/11/840.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>JAVA字符串处理函数列表一览</title>
		<link>http://blog.minidx.com/2008/02/06/482.html</link>
		<comments>http://blog.minidx.com/2008/02/06/482.html#comments</comments>
		<pubDate>Wed, 06 Feb 2008 14:37:14 +0000</pubDate>
		<dc:creator>Minidxer</dc:creator>
				<category><![CDATA[程序开发相关]]></category>
		<category><![CDATA[Java]]></category>
		<category><![CDATA[函数]]></category>
		<category><![CDATA[字符串]]></category>
		<category><![CDATA[数组]]></category>

		<guid isPermaLink="false">http://blog.minidx.com/2008/02/06/482.html</guid>
		<description><![CDATA[Java中的字符串也是一连串的字符。但是与许多其他的计算机语言将字符串作为字符数组处理不同，Java将字符串作为String类型对象来处理。将字符串作为内置的对象处理允许Java提供十分丰富的功能特性以方便处理字符串。下面是一些使用频率比较高的函数及其相关说明。








substring()它有两种形式，第一种是：String substring(int startIndex)第二种是：String substring(int startIndex,int endIndex)
concat() 连接两个字符串
replace() 替换它有两种形式，第一种形式用一个字符在调用字符串中所有出现某个字符的地方进行替换，形式如下：String replace(char original,char replacement)例如：String s=&#8221;Hello&#8221;.replace(&#8217;l',&#8217;w');第二种形式是用一个字符序列替换另一个字符序列，形式如下：String replace(CharSequence original,CharSequence replacement)
trim() 去掉起始和结尾的空格
valueOf() 转换为字符串
toLowerCase() 转换为小写
toUpperCase() 转换为大写
length() 取得字符串的长度例：char chars[]={&#8217;a',&#8217;b&#8217;.&#8217;c'};String s=new String(chars);int len=s.length();
charAt() 截取一个字符例：char ch;ch=&#8221;abc&#8221;.charAt(1); 返回值为&#8217;b&#8217;
getChars() 截取多个字符void getChars(int sourceStart,int sourceEnd,char target[],int targetStart)sourceStart 指定了子串开始字符的下标sourceEnd 指定了子串结束后的下一个字符的下标。因此，子串包含从sourceStart到sourceEnd-1的字符。target 指定接收字符的数组targetStart target中开始复制子串的下标值例：String s=&#8221;this is a demo of the getChars method.&#8221;;char buf[]=new char[20];s.getChars(10,14,buf,0);
getBytes()替代getChars()的一种方法是将字符存储在字节数组中，该方法即getBytes()例：String s = &#8220;Hello!你好！&#8221;; byte[] bytes = s.getBytes(); 
toCharArray()例：String [...]]]></description>
		<wfw:commentRss>http://blog.minidx.com/2008/02/06/482.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

<!-- Performance optimized by W3 Total Cache. Learn more: http://www.w3-edge.com/wordpress-plugins/

Minified using disk
Page Caching using disk (enhanced)
Database Caching 2/22 queries in 0.237 seconds using disk
Object Caching 289/571 objects using disk

Served from: blog.minidx.com @ 2012-02-10 00:55:13 -->
