Listing 8 shows an example of creating an array and then adding three elements to it.
清单8显示创建一个数组然后向其中添加3个元素的示例。
Listing 8 does just this, iterating over the items in the feed and creating an array for each.
清单8演示了这个过程,它遍历提要中的各项并为每一项创建一个数组。
In the example below, the code begins by creating an array of flags that specify the characteristics of the print queues we want to list.
在下列范例中,程序码首先会建立旗标阵列,以指定我们要列出的列印伫列特性。
Once we know which array to use, we use that array as the data source of the spinner by creating an adapter (in this case, an ArrayAdapter) that we pass in to the spinner.
一旦知道使用哪个数组,我们就通过创建一个传入微调器的适配器(在这里是一个ArrayAdapter),使用那个数组作为微调器的数据源。
It also provides three methods for accessing array elements: standard indexing, creating subarrays, and slicing, which produces a less dimensional view of an array segment.
它还提供三种访问数组元素的方法:标准索引、创建子数组和切片(slicing),切片能产生维数更小的数组片段的视图。
They argue that gross inequality tears at the human psyche, creating anxiety, distrust and an array of mental and physical ailments - and they cite mountains of data to support their argument.
他们称显著的不平等扭曲了人们的心理,制造了焦虑、怀疑以及一系列精神和身体上的疾病——他们引用了大量的数据来证明他们的论证。
Pedersen had made them himself, with the help of an enormous array of antennas that can hurl several megawatts of radio waves into the upper atmosphere, creating brilliant light shows in the sky.
一排排巨大的天线阵列把强度达数兆瓦特的无线电波投射到高空大气层,天空出现了一束束耀眼的光线。
The Swing toolkit offers a variety of tools for creating user interfaces and an almost bewildering array of options for modifying those interfaces during a program's lifetime.
Swing工具包提供各种用于创建用户界面的工具和几乎令人眼花缭乱的选项,这些选项用于在程序生存期间修改界面。
Last, a technique known as anisotropic ion beam milling (IBM) is used to etch through the mask to make an array of holes, creating the nanoporous metal.
最后,采用各项异性的离子束(IBM)加工技术可以通过掩膜来蚀刻孔阵,以制成纳米多孔金属材料。
Also, instead of defining a string and converting it to a character array, this is an example of creating a character array directly and initializing it.
另外,这是一个直接创建字符数组并对其进行初始化的示例,而不是定义字符串然后将字符串转换为字符数组。
There are other ways of returning multiple values, such as returning an array from the method, or creating a specialized class and returning an instance of it.
还有另外的方式返回多个值,例如从要领中返回一个数组,或者建立一个特别定义的类的实例。
There are other ways of returning multiple values, such as returning an array from the method, or creating a specialized class and returning an instance of it.
还有另外的方式返回多个值,例如从要领中返回一个数组,或者建立一个特别定义的类的实例。
应用推荐