`
weknow619
  • 浏览: 62741 次
  • 性别: Icon_minigender_1
  • 来自: 广州
社区版块
存档分类
最新评论
文章列表
20161209问题解析请点击今日问题下方的“【Java每日一题】20161212”查看 package Dec2016; public class Ques1212 { public static void main(String[] args){ System.out.println(10.00-9.60); } } 今日问题: 请问主程序中输出结果是什么?(点击以下“【Java每日一题】20161212”查看20161209问题解析) 题目原发布于公众号、简书:【Java每日一题】20161212,【Java每日一题】201612 ...
20161208问题解析请点击今日问题下方的“【Java每日一题】20161209”查看 package Dec2016; public class Ques1209 { public static void main(String[] args){ People g = new People("张三"); // 定义监护人 People p1 = new People("儿子1", g); People p2 = p1.clone(); // 儿子2的信息通过拷贝儿子1来的 ...
20161207问题解析请点击今日问题下方的“【Java每日一题】20161208”查看 package Dec2016; import java.util.List; public class Ques1208 { public static void add(List<? extends Number> list){ // 加入一个元素 list.add(123); } } 今日问题: 请问主程序能否正常运行输出结果?(点击以下“【Java每日一题】20161208”查看20161207问 ...
20161206问题解析请点击今日问题下方的“【Java每日一题】20161207”查看 package Dec2016; public class Ques1207 { public static void main(String[] args) { new Test(); new Test(1); new Test("1"); System.out.println("实例数量为:"+Test.getNumOfInstances()); } } ...
20161205问题解析请点击今日问题下方的“【Java每日一题】20161206”查看 package Dec2016; public class Ques1206 { public static void main(String[] args){ doSex(null); } public static void doSex(Sex sex){ switch (sex) { case Boy: System.out.println("男的"); ...
20161202问题解析请点击今日问题下方的“【Java每日一题】20161205”查看 package Dec2016; import java.util.HashSet; public class Ques1205 { public static void main(String[] args){ StringBuffer sb1 = new StringBuffer("123"); StringBuffer sb2 = new StringBuffer("123"); ...
20161201问题解析请点击今日问题下方的“【Java每日一题】20161202”查看 package Dec2016; public class Ques1202 { public static void main(String[] args) { int num = 127; // 如果是128呢 Integer n1 = new Integer(num); Integer n2 = new Integer(num); System.out.println("new产生的对象: ...
20161130问题解析请点击今日问题下方的“【Java每日一题】20161201”查看 package Dec2016; public class Ques1201 { public static void main(String[] args) { new Ques1201().sum(1, 2); } public void sum(int num1, int num2){ int temp = num1 + num2; System.out.println("没使用变长参数计 ...
20161129问题解析请点击今日问题下方的“【Java每日一题】20161130”查看 package Nov2016; public class Ques1130 { public static void main(String[] args) { int i = 1; Ques1130.test(i); Ques1130.test(Integer.valueOf(i)); } public static void test(long n){ System.out.pri ...
20161128问题解析请点击今日问题下方的“【Java每日一题】20161129”查看 package Nov2016; public class Ques1129 { public static void main(String[] args) { final String str = "123"; str = "1234"; System.out.println(str); final StringBuffer sb = new StringBu ...
20161125问题解析请点击今日问题下方的“【Java每日一题】20161128”查看 package Nov2016; import java.util.ArrayList; import java.util.List; public class Ques1128 { public static void main(String[] args) { List<Integer> list = new ArrayList<>(); list.add(1); list.add(2); ...
20161124问题解析请点击今日问题下方的“【Java每日一题】20161125”查看 package Nov2016; import java.util.LinkedList; import java.util.List; public class Ques1125 { public static void main(String[] args){ List list01 = new LinkedList(); List list02 = new LinkedList(){}; List list03 = new Lin ...
20161123问题解析请点击今日问题下方的“【Java每日一题】20161124”查看 package Nov2016; public class Ques1124 { public static void main(String[] args) { Parent p = new Sub(); p.staticMethod(); p.instanceMethod(); } } class Parent{ public static void staticMethod(){ ...
20161122问题解析请点击今日问题下方的“【Java每日一题】20161123”查看 package Nov2016; import java.util.Scanner; public class Ques1123 { public static void main(String[] args) { Scanner num = new Scanner(System.in); System.out.print("请输入数量:"); while(num.hasNextInt()){ ...
20161121问题解析请点击今日问题下方的“【Java每日一题】20161122”查看 package Nov2016; import java.util.ArrayList; import java.util.Iterator; public class Ques1122 { public static void main(String[] args){ ArrayList<Student> students = new ArrayList<Student>(); students.add(new Studen ...
Global site tag (gtag.js) - Google Analytics