摘要:
Java1.5提供了一个叫varargs的新功能,就是可变长度的参数。 "Varargs"是"variable number of arguments"的意思。有时候也被简单的称为"variable arguments" 定义实参个数可变的方法:只要在一个形参的"类型"与"参数名"之间加上三个连续的 阅读全文
posted @ 2023-05-26 16:07
盘思动
阅读(26)
评论(0)
推荐(0)
摘要:
## demo1 ``` import java.util.ArrayList; import java.util.Iterator; import java.util.List; public class ImoocStudent { public static void main(String[ 阅读全文
posted @ 2023-05-26 15:36
盘思动
阅读(27)
评论(0)
推荐(0)
摘要:
* Java 中的标签是为循环设计的,是为了在多重循环中方便的使用 break 和coutinue ### demo1 ``` public static void main(String[] args) throws Exception{ label:// 放在这里label,跳出外出循环 for 阅读全文
posted @ 2023-05-26 14:35
盘思动
阅读(139)
评论(0)
推荐(0)
摘要:
``` import java.text.SimpleDateFormat; import java.util.Date; public class ImoocStudent { public static void main(String[] args) throws Exception{ for 阅读全文
posted @ 2023-05-26 09:07
盘思动
阅读(17)
评论(0)
推荐(0)