java中 String... 和 instanceof關鍵字的使用

調用方法 具體方法實現 今天在項目中看到一段代碼,之前沒見過。特此記錄一下,自己寫了一段測試代碼,具體代碼的作用我就寫在註釋上面了 public class Mytests { //創建 private Mytests() { test(); test("a", "b"); test(new String[] { "aaa", "bbb" }); test("ccc"); } private vo
相關文章
相關標籤/搜索