摘要: package com.homework.zw; //类Cat部分 public class Cat { String name="妮妮"; String skin="灰色"; int age =2; void outputname() { System.out.println("这只猫咪的名字叫:"+name); } v... 阅读全文
posted @ 2016-09-17 10:26 HRZJ 阅读(944) 评论(0) 推荐(0) 编辑
摘要: package com.homework.zw; //类Print部分 public class Print1 { int x; void output() { if(x==1) { for(int i =65;i<=90;i++) { char a =(ch... 阅读全文
posted @ 2016-09-17 10:11 HRZJ 阅读(1461) 评论(0) 推荐(0) 编辑
摘要: package com.homework.zw; //print类部分 public class Print { void output() { for(int i =100;i<=999;i++) { if(Math.pow(i/100,3)+Math.pow(i%10,3)+Math.pow(i/10%10, 3)==i... 阅读全文
posted @ 2016-09-17 09:54 HRZJ 阅读(559) 评论(0) 推荐(0) 编辑
摘要: package com.homework.zw; //student类部分 public class Student { int stuNo; String name; int age; void output() { System.out.println("学号:"+stuNo); System.out.println("... 阅读全文
posted @ 2016-09-17 09:44 HRZJ 阅读(11672) 评论(0) 推荐(0) 编辑