<script type="text/javascript"> google_ad_client = "pub-5033576919944123"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; //2007-10-24: csdn.blog google_ad_channel = "8548491739"; </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>
private void 试试不定参数(Object...objects){
//其实就是数组,只不过写参数的时候是,号隔开而已,即试试不定参数("123数据", 8, new Date()),而不用试试不定参数(new Object[]{"123数据", 8, new Date()})
System.out.println(objects.length);
for (Object object : objects) {
System.out.println(object);
}
}
如此调用:
试试不定参数("123数据", 8, new Date(), new Object[]{"123数据", 8, new Date()});
<script type="text/javascript"> google_ad_client = "pub-5033576919944123"; google_ad_width = 728; google_ad_height = 90; google_ad_format = "728x90_as"; google_ad_type = "text_image"; //2007-10-24: csdn.blog google_ad_channel = "8548491739"; </script><script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> </script>