【Java每日一题】20170317】的更多相关文章

20170316问题解析请点击今日问题下方的“[Java每日一题]20170317”查看(问题解析在公众号首发,公众号ID:weknow619) package Mar2017; public class Ques0317 { public static void main(String[] args) { Ques0317 test = new Ques0317(); test.method(null); } public void method(StringBuffer sb) { Syst…
20170317问题解析请点击今日问题下方的“[Java每日一题]20170320”查看(问题解析在公众号首发,公众号ID:weknow619) package Mar2017; public class Ques0320 { int num; void Test() { num = 1; System.out.println(num); } Ques0320(int i) { num = i; System.out.println(num); } public static void main…
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…
20170103问题解析请点击今日问题下方的"[Java每日一题]20170104"查看(问题解析在公众号首发,公众号ID:weknow619) package Jan2017; import java.util.HashSet; import java.util.Set; public class Ques0104{ public static void main(String[] args){ Obj obj01 = new Obj("张三"); Obj obj…
20161230问题解析请点击今日问题下方的"[Java每日一题]20170103"查看(问题解析在公众号首发,公众号ID:weknow619) package Jan2017; public class Ques0103 { public static void main(String[] args){ System.out.println(delete("你好", "你").equals("好")); System.out…
// 20161229问题解析请点击今日问题下方的"[Java每日一题]20161230"查看(问题解析在公众号首发,公众号ID:weknow619)package Dec2016; public class Ques1230 { int array = {1, 2, 3}; // 1 int array[] = {1, 2, 3}; // 2 int[] array = {1, 2, 3}; // 3 int array[] = new int{1, 2, 3}; // 4 int…
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…
package Dec2016; import java.util.ArrayList; import java.util.List; public class Ques1228 { public static void main(String[] arg){ Student stu01 = new Student("001"); Student stu02 = new Student("001 "); // stu02中001后面有个空格 List<Stud…
package Dec2016; public class Ques1227 { public static void main(String[] args){ } { c = 1; } int c = 2; int a = b; int b = 3; } 今日问题: 请问主程序输出结果是什么?(点击以下"[Java每日一题]20161227"查看20161226问题解析) 题目原发布于公众号.简书:[Java每日一题]20161227,[Java每日一题]20161227 注:wek…