自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 动物模拟器 接口

interface Animal { abstract void Cry(); abstract void GetAnimalName(); } class Simulator { void playSound(Animal animal) { animal.GetAnimalName();

2017-12-09 08:40:26 407

原创 动物声音模拟器

abstract class Animal { abstract void cry(); abstract String getAnimalName(); } public class Simulator { void playSound(Animal animal) { System.out.print(animal.getAnimalName()

2017-12-09 08:38:36 405

原创 类描述计算机中CPU的速度和硬盘容量

class CPU{ int speed; void setSpeed(int m){ speed=m; } int getSpeed(){ return speed; } } class HardDisk{ int amount; void setAmount(int m){ amount=m; } int getAmount(){

2017-12-09 08:37:28 523

原创 满足1+2+3+n<8888的最大正整数n

public class { public static void main(String[] args) { int x=2,y=1,a=0; while(y<8888){ a++; y=y+x; x++; } S

2017-12-09 08:36:03 941

原创 计算 8+88+888...

public static void main(String args[]){ long a,b=0, c=0; System.out.println("计算8+88+888...前10项之和"); for(a=1;a<=10;a++){ b=b*10+8; c+=

2017-11-16 14:28:53 1662 1

原创 100以内 完数

public static void main(String arg[]){ int a,b,c; System.out.println("1000之内所有完数:"); for(a=1;a<=1000;a++){ c=0;

2017-11-16 14:28:09 1060

原创 1+2+3+4。。。。20

public static void main(String arg[]){ double a,b=1,c=0; System.out.println("1!+1/2!+1/3!+1/4!+....的前20项和:"); for(a=1;a<=20;a++){ b*=1/a; //求1/n! c+

2017-11-16 14:26:57 342

原创 1+2+3+4+5+6+7+8+9+10

public class test2 { public static void main(String[] args) { int i,a=0,b=1; for(i=1;i<=10;i++) { b=b*i; a=a+b; } Syste

2017-11-16 14:24:38 2404

原创 100以内 素数

public static void main(String[] args) { int x,y; for(x=2;x<=100;x++) { for(y=2;y<x;y++) { if(x%y==0) break; }

2017-11-16 14:23:58 197

原创 你 我 他

public static void main(String[] args) { char a='他',c='你',d='我'; System.out.println("汉字 "+c+" 的位置是"+(int)c); System.out.println("汉字 "+d+" 的位置是"+(int

2017-11-16 14:23:03 127

原创 希腊字母

public static void main(String[] args) { char c,d,g,h; c='α';d='ω';g='Α';h='Ω'; System.out.print("希腊字母大写:"); while(c<=d){

2017-11-16 14:22:24 228

原创 作业

public class Unicode_number { public static void main(String args[]) { char A='你',B='我',C='他'; System.out.println("汉字\'你'在unicode表中的位置:"+(int)A); System.out.println("汉字\'

2017-10-29 13:07:40 202

原创 hello world

public class Hello{ public static void main(String args[]){ System.out.println("Hello,I'm lie qi rong!"); System.out.println("Nice to meet you"); } }

2017-10-29 13:00:59 182

空空如也

空空如也

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

TA关注的人

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