当前位置:网站首页>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
边栏推荐
- Un aperçu des flux d'E / s et des opérations de fichiers de classe de fichiers
- 关于idea调试模式下启动特别慢的优化
- Section 2 map and structure in Chapter 6
- Redis(17) -- Redis缓存相关问题解决
- 移植tslib时ts_setup: No such file or directory、ts_open: No such file or director
- 深度学习笔记(二)——激活函数原理与实现
- Unity Basics
- ThreadLocal 测试多线程变量实例
- MySQL keyword group_ Concat, combined connection query
- Database SQL -- simulate inserting a large amount of data, importing / exporting database scripts, timestamp conversion and database basics
猜你喜欢

MySQL keyword group_ Concat, combined connection query

Database - MySQL -- Navicat import SQL error 1067 - invalid default value for 'paydate‘
![Eight elder brothers chronicle [4]](/img/87/f695d0275f8a66b9def48a75668d15.png)
Eight elder brothers chronicle [4]

QT dynamic translation of Chinese and English languages

Seminar playback video: how to improve Jenkins' ability to become a real Devops platform

MySQL之explain关键字详解

【微服务】(十)—— 统一网关Gateway

QT learning summary

关于idea调试模式下启动特别慢的优化

Unity Basics
随机推荐
Use of ADB command [1]
批量下载文件----压缩后再下载
浅学一下I/O流和File类文件操作
Visual programming - Experiment 1
Docker pulls MySQL and connects
QT learning summary
Applet - more than two pieces of folding and expansion logic
你真的懂hashCode和equals吗???
Unity games and related interview questions
JS recursive tree structure calculates the number of leaf nodes of each node and outputs it
场景题:A系统如何使用B系统的页面
Supersocket is Use in net5 - startup
打卡:4.22 C语言篇 -(1)初识C语言 - (11)指针
2022 团体程序设计天梯赛 模拟赛 L2-1 盲盒包装流水线 (25 分)
Punch in: 4.23 C language chapter - (1) first knowledge of C language - (12) structure
There is no index in the database table. When inserting data, SQL statements are used to prevent repeated addition (Reprint)
C-11 problem I: find balloon
2022 团体程序设计天梯赛 模拟赛 1-8 均是素数 (20 分)
ThreadLocal test multithreaded variable instance
MySQL query specifies that a row is sorted to the first row