自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(7)
  • 收藏
  • 关注

原创 第七章作业

import java.util.*; public class Example7{ public static void main(String args[]){ Scanner reader=new Scanner(System.in); double sum=0; int m=0; while(reader.hasNextDouble()){ double x=rea

2017-11-25 11:28:29 156

原创 第六章作业

interface Animal{ void cry(); String getAnimalName(); } class Dog implements Animal{ public void cry(){ System.out.println("汪汪....."); } public String getAnimalName(){ return "狗"; } } clas

2017-11-25 10:57:06 155

原创 第五章作业

public class Application{ public static void main(String[] args){ Simulator simulator = new Simulator(); simulator.playSound(new Dog()); simulator.playSound(new Cat()); } } class Simulator{

2017-11-18 11:10:57 199

原创 第四章作业

用类描述计算机CPU的速度和硬盘的容量 class PC{ CPU cpu; HardDisk HD; void setCPU(CPU c){ cpu=c; }; void setHardDisk(HardDisk h){ HD=h; }; void show(){ System.out.println("cpu的速度是:"+cpu.getSpeed()); Sys

2017-11-04 11:19:47 134

原创 第三章作业

1、求1!+2!+...+10! public class test1{ public static void main(String []args){ int sum=0; for(int i=1;i<=10;i++){ int k=1; for(int j=i;j>=1;j--){ k*=j; } sum+=k; } System.out.p

2017-11-04 09:42:35 354

原创 第二章作业

代码public class test1{ public static void main (String args[]){ System.out.println("汉字你的位置:"+(int)'你'+"\n汉字我的位置:"+(int)'我'+"\n汉字他的位置:"+(int)'他'); } }

2017-10-21 09:56:12 288

原创 Hello, World

public class Hello { public static void main(String[] args) { System.out.println("Hello, World"); } }

2017-10-20 19:22:30 86

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除