自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

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

原创 作业.断言语句

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

2017-12-02 02:32:50 274 1

原创 作业.设计一个动物声音模拟器(接口)

package シミュレーター; public abstract interface Animal { public abstract void cry(); public abstract String getAnimalName() ; } package シミュレーター; public class Simulator { public void playSound(Animal

2017-11-22 23:23:24 1838

原创 作业.设计一个动物声音模拟器

package シミュレーター; public abstract class Animal { abstract void cry(); abstract String getAnimalName() ; } package シミュレーター; public class Application{ public static void main(String[] args) { Simula

2017-11-17 20:46:43 695

原创 查询硬盘容量

package test; import java.io.File; public class testimp{ public static void main(String[] args) { System.out.println(); getDiskInfo(); } public static void getDiskInfo() { File[] disks

2017-11-09 02:46:56 232

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

package クラス; public class CPU { int speed; void getSpeed(int m) { speed=m; } int getSpeed() { return speed; } } package クラス; public class HardDisk { int amount; void getAmount(int m) {

2017-11-04 01:31:45 558

原创 作业.输出满足1+2+3+n<8888的最大正整数n

public class test5 { public static void main(String[] args) { int x,y=0; for(x=1;;x++) { y=y+x; if(y>8888) { System.out.println(x-1); break; } } } }

2017-10-22 02:01:22 1623

原创 作业.找出1000以内的所有完数

public class test4 {     public static void main(String[] args) {         int x,y,a;         for(x=6;x         {             a=0;             for(y=1;y                 if(x%y==0)a+=y;

2017-10-22 01:51:49 553

原创 作业.使用for语句计算8+88+888...的前10项之和

public class test1 { public static void main(String[] args) { int x,y=8,a=8; for(x=1;x<=10;x++) { a=a*10+8; y=y+a; } System.out.println("結果は16進数で表示します:"+Integer.toOctalString(y))

2017-10-22 01:48:59 1322

原创 作业.分别用while和for写出1+1/2!+1/3!.....的前20项和

import java.util.Scanner; public class test { public static void main(String[] args) { double a,b; Scanner in=new Scanner(System.in); int x=in.nextInt(); a=add(x);         System.out.printl

2017-10-21 20:27:29 1320

原创 九九

public class test2 { public static void main (String args[ ]){ int x,y; for(x=1;x<=9;x++) {//xが1を増えると計算回数も共に1回増える for(y=1;y<=x;y++) System.out.print(x+"*"+y+"="+x*y+" ");

2017-10-20 18:54:09 168

原创 作业.1!+2!+3!+4!+5!+6!+7!+8!+9!+10!

package test; public class test6 { public static void main(String[] args) { int i,a=0,b=1; for(i=1;i<=10;i++) { b=b*i; a=a+b; } System.out.println(a); } }

2017-10-14 17:51:33 1859 2

原创 作业.找出100以内所有素数

package test; public class test5 { public static void main(String[] args) { int i; System.out.println("2"); System.out.println("3"); System.out.println("5"); System.out.println("7"); fo

2017-10-14 17:29:18 875

原创 作业.找出汉字“你“”我“”他”的位置

package test; public class test4 { public static void main(String[] args) { int b,e=0,f=0,g=0; char a='他',c='你',d='我'; for(b=1;b<=65536;b++) { if(b==c) {e=b;System.out.println(e);} if(b

2017-10-14 16:44:01 283

原创 作业.输出全部希腊字母

package test; public class test4 { public static void main(String[] args) { int b,e=0,f=0; char a,c='α',d='ω'; for(b=1;b<=65536;b++) { if(b==c) {e=b;} if(b==d) {f=b;} }//查找希腊字母表开始位置和结

2017-10-14 16:40:27 785

原创 名無し

public class test { int i=13; public void sa() { int a=1; for(i=0;i<3;) { i+=a; System.out.println(i+"");} } public test() { } public static void main(String[] args) { test t1=new te

2017-10-14 03:51:00 266

原创 进制转换

package test; import java.util.Scanner; public class Test2 { public static void main(String[] args) { Scanner in=new Scanner(System.in); int i=in.nextInt(); String s1=Integer.toString(

2017-10-14 03:50:00 160

原创 寻找数组中相同值的位置

package test; public class Test3 { public static void main(String[] args) { int a[]= {53,45,50,60,50,60,50,40,40,10,50,70,50}; int b[]= {50,70}; int i=0,d=0; while(i<a.length) {

2017-10-14 03:47:47 766

原创 作业.hello world

package test; public class test { public static void main(String[] args) { System.out.println("hello world"); } }

2017-09-20 21:50:22 272

空空如也

空空如也

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

TA关注的人

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