当前位置:网站首页>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
边栏推荐
- . NETCORE sets the API post mode, which can accept parameters directly in parentheses
- String input problem
- Detailed description of MySQL index [B + tree index, hash index, full-text index, overlay index]
- Unity knowledge points (ugui 2)
- Iotos IOT middle platform is connected to the access control system of isecure center
- MySQL grouping query rules
- Build websocket server in. Net5 webapi
- MySQL installation pit
- QT learning summary
- ThreadLocal test multithreaded variable instance
猜你喜欢
打卡:4.22 C语言篇 -(1)初识C语言 - (11)指针
Visual programming - drawing assignment
Super easy to use [general excel import function]
浅学一下I/O流和File类文件操作
Visual programming - Experiment 1
Section 1 array and slicing in Chapter 6
Codeforces Round #784 (Div. 4)題解 (第一次AK cf (XD
全新的ORM框架——BeetlSQL介绍
Utgard connection opcserver reported an error caused by: org jinterop. dcom. common. JIRuntimeException: Access is denied. [0x800
C set
随机推荐
PyMOL usage
Problem a: face recognition
Romantic silhouette of L2-3 of 2022 group programming ladder Simulation Competition (25 points)
浅学一下I/O流和File类文件操作
When migrating tslib_ setup: No such file or directory、ts_ open: No such file or director
Eight elder brothers chronicle [4]
MySql关键字GROUP_CONCAT,组合连接查询
The principle and solution of not allowing pasting in an English Network
Applet - more than two pieces of folding and expansion logic
A comprehensive understanding of static code analysis
socket編程 send()與 recv()函數詳解
Unity knowledge points (ugui)
全新的ORM框架——BeetlSQL介绍
oracle 查询外键含有逗号分隔的数据
Detailed explanation of socket programming send() and recv() functions
Visual programming - drawing assignment
Docker拉取mysql并连接
Using swagger in. Net5
Five tips for cross-border e-commerce in 2022
POI create and export Excel based on data