最新回答 / 丧心病狂周大仙
public static void main(String[] args) { // TODO Auto-generated method stub TestSet st=new TestSet(); st.testAdd(); st.testForEach(); Student student=new Student("1","小明"); System.out.println("欢迎学生"+student.name+"选...
2017-04-23
已采纳回答 / eagle4294644
挺无解的,我的不会产生这样的报错。public static void main(String[] args) { double a = 19.5; Double b = new Double(a); Double c = a; System.out.println("装箱后结果为"+ b + "和" + c); Double d = new Double(45.3); double e = d.doubleValue()...
2017-04-23
已采纳回答 / 娱乐局
public class DrunkException extends Exception { public DrunkException(){ } public DrunkException(String message){ super(message); }}再创建一个这个类
2017-04-23
最新回答 / polaris张
<...code...>public class PokerDemo { public static void main(String[] args) { // 创建一个HashMap集合 HashMap&StrInteger, String& Ha hm = new HashMap&StrInteger, String&建一个(); // 创建一个ArrayList集合 ArrayList&ew Integer&t&l array = ...
2017-04-23
最新回答 / 想要学习的小懒虫
Java语言是要面对对象的,就是要有所谓的OOP思想。基本类型,直接存数值,不能调用方法和保存在集合类ArrayList等中,也就是说不能直接面对对象;包装类是类,产生对象时用一个引用指向这个对象,可以理解为指向这个对象的地址,包装类的对象拥有方法,可以实现更多功能,如可以加以调用相应的属性值等
2017-04-23