- 博客(4)
- 收藏
- 关注
原创 第七章练习
import java.util.*; public class E { public static void main(String args[]) { Scanner reader=new Scanner(System.in); double sum=0; int m=0; while(reader.hasNextDouble()) { double x=read
2017-11-25 19:29:44 320
原创 第六章练习
public interface Animal { public abstract void cry(); public abstract String getAnimalName(); } public class Dog implements Animal { public void cry() { System.out.println("汪汪~汪汪"); } publi
2017-11-25 17:27:05 362
原创 第五章练习
public class Application { public static void main(String args[]) { Simulator simulator=new Simulator(); simulator.playSound (new Dog()); simulator.playSound (new Cat()); } } public class
2017-11-12 21:47:05 222
原创 第四章编程练习
public class Test { public static void main(String args[]) { CPU cpu=new CPU(); HardDisk hd=new HardDisk(); cpu.setSpeed(2200); hd.setAmount(200); PC pc=new PC(); pc.setCPU(cpu); pc.se
2017-11-12 21:10:21 201
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人