当前位置:网站首页>Definition format of array
Definition format of array
2022-04-23 03:28:00 【Aiyou coffee】
Definition : Array is a storage mode used to store multiple data of the same type .
Format :1, data type [] Variable name
int[] arry
2, data type Variable name []
int arry []
Java The array in is to be initialized , Can be used .( Initialization is to allocate memory space for the array elements in the array , And assign values to each array element )
dynamic initialization : Initialization only specifies the array length , Initialization of array allocation by the system .
Format : data type [] Variable name = new data type [ The length of the array ]
for example :int [] arry = new int[6];
explain : On the left :int: Indicates that the element type in the array is int type
[]: The description is an array
arr: This is the name of the array
On the right :new: Request memory space for array
int: Indicates that the element type in the array is int type
[]: The description is an array
6: The length of the array , In fact, it is the number of elements in the array
版权声明
本文为[Aiyou coffee]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204220619009027.html
边栏推荐
- MySql分组查询规则
- 2022 团体程序设计天梯赛 模拟赛 L2-1 盲盒包装流水线 (25 分)
- Applet - canvas drawing Poster
- 2021-08-11
- Batch download of files ---- compressed and then downloaded
- Idea view history [file history and project history]
- Problem C: realize Joseph Ring with linked list
- MySQL keyword group_ Concat, combined connection query
- Code forces round # 784 (DIV. 4) solution (First AK CF (XD)
- QT learning summary
猜你喜欢

IDEA查看历史记录【文件历史和项目历史】

Fiddler use

Peut recevoir plusieurs paramètres de type de données - paramètres variables

C interface

C set

Knowledge of software testing~

Learn about I / O flow and file operations

AWS from entry to actual combat: creating accounts

Problem a: face recognition
![Idea view history [file history and project history]](/img/b2/3128105eca7449c55146ce3b9e5c2e.png)
Idea view history [file history and project history]
随机推荐
Code forces round # 784 (DIV. 4) solution (First AK CF (XD)
Using swagger in. Net5
C-10 program error correction (recursive function): number to character
Redis(17) -- Redis缓存相关问题解决
【微服务】(十)—— 统一网关Gateway
Fiddler use
Cefsharp stores cookies and reads cookies
PyMOL usage
Chapter 8 exception handling, string handling and file operation
QT dynamic translation of Chinese and English languages
JS takes out the same elements in two arrays
Can you answer the questions that cannot be answered with a monthly salary of 10k-20k?
Section 2 map and structure in Chapter 6
Test questions and some space wars
你真的懂hashCode和equals吗???
Unity knowledge points (common core classes)
socket编程 send()与 recv()函数详解
Detailed description of MySQL index [B + tree index, hash index, full-text index, overlay index]
MySQL query specifies that a row is sorted to the first row
Advanced sorting - fast sorting