编写一个Car类,具有String类型的属性品牌,具有功能drive; 定义其子类Aodi和Benchi,具有属性:价格、型号;具有功能:变速; 定义主类E,在其main方法中分别创建Aodi和Benchi的对象并测试对象的特 性。 package zuoye; public class Cat { ...
分类:
其他好文 时间:
2016-09-21 14:31:18
阅读次数:
103
//Person package zuoye; public class Person { private String name,address,telphone,email; public String getName() { return name; } public void setName ...
分类:
其他好文 时间:
2016-09-21 14:29:34
阅读次数:
740
package zuoye; public class print { void output() { System.out.println("100-999之间的水仙花数是:"); for(int sum=100;sum<=999;sum++) { if(Math.pow(sum/100, 3)+ ...
分类:
编程语言 时间:
2016-09-17 16:27:05
阅读次数:
172
package zuoye; public class print1 { String a="abcdefghigklmnopqrstuvwxyz"; String B="ABCDEFGHIGKLMNOPQRSTUVWXYZ"; int x; void output() { if(x==1) { S ...
分类:
编程语言 时间:
2016-09-17 16:10:01
阅读次数:
181
package zuoye; public class student { int age; String name; int stuNO; void outPut() { System.out.println("学生的姓名是:"+name); System.out.println("年龄是:"+a ...
分类:
编程语言 时间:
2016-09-17 14:52:36
阅读次数:
340
header("location:http://localhost:8080/JiaoWu/JiaoWu/A/index.php/Home/ZuoYe/ZuoYe"); 可以跨控制器跳转 header("location:http://地址/".U("方法名")); 本控制器跳转 header("l ...
分类:
其他好文 时间:
2016-06-23 20:24:07
阅读次数:
713
package zuoye;import java.awt.BorderLayout;import java.awt.Component;import java.awt.Window;import java.awt.event.*;import javax.swing.*;import java.a ...
分类:
其他好文 时间:
2016-05-28 19:12:47
阅读次数:
150
int fenshu; string zuoye; Console.WriteLine("输入成绩:"); fenshu = Convert .ToInt32 ( Console.ReadLine()); if (fenshu <60) { Console.WriteLine("是否认真做作业,(是 ...
分类:
其他好文 时间:
2016-04-17 11:46:13
阅读次数:
143
package Zuoye; import java.io.EOFException; public class YIchang { public int say(int num, int num1) throws Exception { if (num < num1) { throw new Ex ...
分类:
其他好文 时间:
2016-04-14 22:18:07
阅读次数:
107
namespace zuoye{ class Program { //1.输入三个整数,xyz,最终以从小到大的方式输出。利用if嵌套。 public void HS1() { int t = 0; int x = int.Parse(Console.ReadLine()); int y = int
分类:
其他好文 时间:
2016-03-21 13:52:09
阅读次数:
162