转自:http://576017120.iteye.com/blog/1235467
public static void aa(Object... args){ }
在这个方法里面Object... 代表什么?
意思就是参数是可变的,意思就是说,你在调用这个方法的时候你可以给他传一个String类型的参数,也可以给他传一个Int类型的参数,或者多个不同类型的参数,很灵活的。
如:
public class Test {
public static void main(String[] args) {
int aa = 0;
aa("sdfsf","String2","ddddd",aa);
}
public static void aa(Object... args){
System.out.println(args[1]);
System.out.println("asfdlsdlkfs");
}
}
分享到:
相关推荐
英文原版APi-Object,MarkDonw版,已个格式化好
关于接口和对象的一些个人整合的东西,还有一些个人代码
VS2010无法与sql server2005连接而导致的报错 未能加载文件或程序集“Microsoft.SqlServer.Management.Sdk.Sfc, Version=10.0.0.0, Culture=neutral,PublicKeyToken=89845dcd8080cc91”或它的一个依赖项。...
js代码-手写代码练习---extend 与 Object.create 实现
从 ubuntu16.04 里复制出来的 libpng12.so.0 是64位系统库,使用时需要复制到路径 /usr/lib/x86_64-linux-gnu
libssl.so.10缺失库文件的解决办法,error while loading shared libraries :libssl.so.10:cannot open shared object file:No such file or directory
Final report from the video quality experts group on the validation of objective models of video quality assessment
C# 中Objec sender 以及 EventArgs e 浅淡分析 了解C# 中自动生成方法工作原理
ecc代码,密码学学习必须掌握的算法。很全的代码。
This book is made to be accessible to new programmers, but it’s not watered down. You’re learning to use the same things the professionals use. My job is to make sure that each page says something ...
optimization of a fuzzy rule based PI controller with using Genetic Algorithm
解析.git/index文件,找到工程中所有的: ( 文件名,文件sha1 ) 去.git/objects/ 文件夹下下载对应的文件 zlib解压文件,按原始的目录结构写入源代码
QuakeI Model(*.mdl)、QuakeII Model(*.md2)、Objec t File Format(*.off)、*.raw、*.obj等,平面图型有bmp、rle、dib、gif、jpg、png、tif、tga、pcx 等,在观看3D文件时可以用鼠标调整不同的角度观看。
Python参考手册,官方正式版参考手册,chm版。以下摘取部分内容:Navigation index modules | next | Python » 3.6.5 Documentation » Python Documentation contents What’s New in Python ...
Newman, B. M. & Newman, P. R. An introduction to the psychlogy of adolescence. Homewood, IL: Dorsey Press, 1979, 541 ... Objec- tive distance, now sanctified by science, has encouraged many to expect to
This bas contains functions to manipulate Button class objects
We take great care to meet both of these objec- tives. This allows us to stay on task so that each topic can be covered with the depth required before progression to the next logical one. As a result...
Beginning iOS Programming
图像视觉领域的深度学习资料,手把手教你搭建自己的神经网络,让你从实践中深入浅出地学习各种经典神经网络知识。亲试不错,分享之!
Objective C 的练习资料 大家抓紧下载吧