当前位置:网站首页>Introduction to variable parameters

Introduction to variable parameters

2022-07-06 15:09:00 Jaden_ JH

Introduction to variable parameters :

summary : It is JDK1.5 Characteristics of , Indicates that the number of parameters is variable , That is, at least incoming 0 Data of this type , At most, countless data of this type will be passed in .

Format : data type … Variable name

details :( matters needing attention )

1. The bottom layer of variable parameters is actually an array .
2. The formal parameter list of a method has and can only have one variable parameter , And variable parameters should be placed at the end of the parameter list

原网站

版权声明
本文为[Jaden_ JH]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202131323325751.html