Java 应用与开发 - Java 数组和字符串
一维数组静态初始化 1 int[] a = {1,2,3,4,5}; 注意 在 Java 程序中声明数组时,无论用何种方式定义数组,都不能 指定其长度。 课程配套代码 ± sample.array.ArraySample.java 大纲 数组的概念 一维数组 二维数组 字符串 接下来… 数组的概念 一维数组 二维数组 字符串 大纲 数组的概念 一维数组 二维数组 字符串 二维数组 1 int[][] a = {{11,22,33,44}, {66,77,88,99}}; 注意 声明多维数组并初始化时不能指定其长度,否则出错。 课程配套代码 ± sample.array.Array2DimSample.java 大纲 数组的概念 一维数组 二维数组 字符串 Arrays 类 java.util.Arrays 工具类能方便地操作数组,它提供的所有方法都 是静态的。该类具有以下功能: 方法比较数组中元素值是否相等。 查找数组元素 通过 binarySearch 方法能对排序好的数组进行二 分查找法操作。 复制数组 把数组复制成一个长度为 length 的新数组。 课程配套代码 ± sample.array.ArrayToolsSample.java 大纲 数组的概念 一维数组 二维数组 字符串 接下来… 数组的概念 一维数组 二维数组 字符串 大纲 数组的概念 一维数组 二维数组 字符串0 码力 | 33 页 | 620.46 KB | 1 年前3CakePHP Cookbook 2.x
Validating options Using boolean options Adding subcommands Building a ConsoleOptionParser from an array Getting help from shells Getting help as XML Routing in shells / CLI Shell API More topics Shell the values in the $default array with those that apply to your setup. A sample completed configuration array might look something like the following: public $default = array( 'datasource' => 'Database/Mysql' controller should look like: class PostsController extends AppController { public $helpers = array('Html', 'Form'); } Now, let’s add an action to our controller. Actions often represent a single0 码力 | 1096 页 | 958.62 KB | 1 年前3CakePHP Cookbook 2.x
the values in the $default array with those that apply to your setup. A sample completed configuration array might look something like the following: public $default = array( 'datasource' => 'Database/Mysql' basic controller should look like: class PostsController extends AppController { public $helpers = array('Html', 'Form'); } Now, let’s add an action to our controller. Actions often represent a single function would look something like this: class PostsController extends AppController { public $helpers = array('Html', 'Form'); public function index() { $this->set('posts', $this->Post->find('all')); } } By0 码力 | 820 页 | 2.52 MB | 1 年前3Julia v1.2.0 Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 73 14.10Byte Array Literals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 77 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 189 Selec�ng an appropriate output array . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 190 Extending broadcast with custom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 239 26.4 Typed array ini�alizers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2400 码力 | 1250 页 | 4.29 MB | 1 年前3Julia 1.2.0 DEV Documentation
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 75 15.10Byte Array Literals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 79 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 191 Selec�ng an appropriate output array . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 192 Extending broadcast with custom . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 241 27.4 Typed array ini�alizers . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2420 码力 | 1252 页 | 4.28 MB | 1 年前3Julia v1.5.4 Documentation
Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 7.10 Byte Array Literals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 7.11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173 Selecting an appropriate output array . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174 Extending broadcast with custom and Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222 19.3 Array literals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2230 码力 | 1337 页 | 4.41 MB | 1 年前3Julia 1.5.3 Documentation
Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 7.10 Byte Array Literals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 7.11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173 Selecting an appropriate output array . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174 Extending broadcast with custom and Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222 19.3 Array literals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2230 码力 | 1335 页 | 4.41 MB | 1 年前3Julia 1.5.2 Documentation
Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 7.10 Byte Array Literals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 7.11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173 Selecting an appropriate output array . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174 Extending broadcast with custom and Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222 19.3 Array literals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2230 码力 | 1335 页 | 4.41 MB | 1 年前3Julia 1.5.1 Documentation
Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 7.10 Byte Array Literals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 7.11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173 Selecting an appropriate output array . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174 Extending broadcast with custom and Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222 19.3 Array literals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2230 码力 | 1335 页 | 4.41 MB | 1 年前3Julia 1.5.0 Documentation
Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 55 7.10 Byte Array Literals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 60 7.11 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 173 Selecting an appropriate output array . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 174 Extending broadcast with custom and Initialization . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 222 19.3 Array literals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2230 码力 | 1335 页 | 4.41 MB | 1 年前3
共 1000 条
- 1
- 2
- 3
- 4
- 5
- 6
- 100