`
weknow619
  • 浏览: 62650 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论
文章列表
20161028问题解析请点击今日问题下方的“【Java每日一题】20161031”查看 package Oct2016; import java.util.SortedSet; import java.util.TreeSet; public class Ques1031 { public static void main(String[] args) { SortedSet<People> set = new TreeSet<People>(); set.add(new People(170)); s ...
20161026问题解析请点击今日问题下方的“【Java每日一题】20161027”查看 package Oct2016; public class Ques1028 { public static void main(String[] args){ new B().out(); // 输出 } } class A{ String message = "AAA"; void out(){ System.out.println(message); } } cla ...
20161026问题解析请点击今日问题下方的“【Java每日一题】20161027”查看 package Oct2016; public class Ques1027 { public static void main(String[] args) { System.out.println(1 % 2 == 1 ? "奇数" : "偶数"); System.out.println(2 % 2 == 1 ? "奇数" : "偶数"); Sy ...
20161025问题解析请点击今日问题下方的“【Java每日一题】20161026”查看 package Oct2016; import java.util.Date; public class Ques1026 { public static void main(String[] args) { boolean b1 = "String" instanceof Object;//1 boolean b2 = new String() instanceof String;//2 boolean b3 = 'A ...
20161024问题解析请点击今日问题下方的“【Java每日一题】20161025”查看 package Oct2016; import static java.lang.Math.PI; public class Ques1025 { public final static int PI = 3; // 常量名与静态导入的相同 public static void main(String[] args) { System.out.println("PI="+PI); } } 今日问题: 请 ...
20161021问题解析请点击今日问题下方的“【Java每日一题】20161024”查看 package Oct2016; public class Ques1024 { public static void main(String[] args) { int num = 0; for(int i = 0; i < 100; i++){ num = num++; } System.out.println("num="+num); } } ...
20161020问题解析请点击今日问题下方的“【Java每日一题】20161021”查看 package Oct2016; public class Ques1021 { public static void main(String[] args) { Ques1021 ques1021 = new Ques1021(); ques1021.method01("test", 0); ques1021.method01("test", "tttt"); ...
20161019问题解析请点击今日问题下方的“【Java每日一题】20161020”查看 package Oct2016; public class Ques1020 { public static void main(String[] args) { int num = 10; String str01 = String.valueOf(num < 30 ? 20 : 30); String str02 = String.valueOf(num < 30 ? 20 : 30.0); Sy ...
20161018问题解析请点击今日问题下方的“【Java每日一题】20161019”查看 package Oct2016; import java.util.List; public class Ques1019 { // 对数组求和 public static int sum(int[] datas){ int sum = 0; for(int i=0; i<datas.length;i++){ sum += datas[i]; // 1 ...
20161017问题解析请点击今日问题下方的“【Java每日一题】20161018”查看 package Oct2016; public class Ques1018 { public static void main(String[] args){ Obj obj01 = new Obj("18"); Obj obj02 = new Obj("19"); obj01.printAge(obj02); } } clas ...
package Oct2016; import java.util.ArrayList; import java.util.Vector; public class Ques1017 { public static void main(String[] args) { ArrayList<String> str01 = new ArrayList<String>(); str01.add("123"); Vector<String> ...
Global site tag (gtag.js) - Google Analytics