java中 String... 和 instanceof关键字的使用

调用方法 具体方法实现 今天在项目中看到一段代码,之前没见过。特此记录一下,自己写了一段测试代码,具体代码的作用我就写在注释上面了 public class Mytests { //创建 private Mytests() { test(); test("a", "b"); test(new String[] { "aaa", "bbb" }); test("ccc"); } private vo
相关文章
相关标签/搜索