package Oct2016; public class Ques1013{ public static void main(String[] args){ new Obj(); } } class Obj{ String name; Other other = new Other(); public Obj(){ this("Object"); System.out.println("无参构造函数"); } public Obj(String name){ Sy…
20161013问题解析请点击今日问题下方的"[Java每日一题]20161014"查看 package Oct2016; import java.util.Arrays; import java.util.List; public class Ques1014 { public static void main(String[] args) { int[] data = {1, 2, 3}; List list = Arrays.asList(data); System.out.pr…
20170105问题解析请点击今日问题下方的"[Java每日一题]20170106"查看(问题解析在公众号首发,公众号ID:weknow619) package Jan2017; public class Ques0106 { public void method01(String... strings, int num){ } public void method02(String... strings, int... is){ } } 今日问题: 以上两个方法使用了变长参数,请问这…
20170104问题解析请点击今日问题下方的"[Java每日一题]20170105"查看(问题解析在公众号首发,公众号ID:weknow619) package Jan2017; import java.util.ArrayList; import java.util.List; public class Ques0105 { public static void main(String[] args) { List<String> list = new ArrayList…
20161230问题解析请点击今日问题下方的"[Java每日一题]20170103"查看(问题解析在公众号首发,公众号ID:weknow619) package Jan2017; public class Ques0103 { public static void main(String[] args){ System.out.println(delete("你好", "你").equals("好")); System.out…
package Dec2016; import java.util.ArrayList; import java.util.List; public class Ques1229 { public static void main(String[] args){ Student stu01 = new Student("001"); Student stu02 = new Student(null); List<Student> students = new ArrayLi…