摘要: package z; public class PersonArray { public static void main(String args[]) { person per[]=new person[3]; per[0]=new person("张三",20); per[1]=new pers 阅读全文
posted @ 2017-12-18 14:10 张立平 阅读(128) 评论(0) 推荐(0) 编辑
摘要: package Z; public abstract class Person { private String name; private int age; public String getName() { return name; } public void setName(String na 阅读全文
posted @ 2017-12-18 13:58 张立平 阅读(135) 评论(0) 推荐(0) 编辑
摘要: package Z; public abstract class A { private String name; public A(String name) { this.name=name; } public String getName() { return this.name; } publ 阅读全文
posted @ 2017-12-18 13:52 张立平 阅读(77) 评论(0) 推荐(0) 编辑
摘要: public class Z { public static void main(String[] args) { // TODO Auto-generated method stub new Yi().fun(); } public void fun() { System.out.println("Love i... 阅读全文
posted @ 2017-11-13 10:38 张立平 阅读(113) 评论(0) 推荐(0) 编辑
摘要: public class X { //一个是字段也称属性,另一个是方法,也称实现的功能 private double radius; // 构造方法,有参构造 public Yuan(double radius) { this.radius = radius; } //方法的重载,参数不同 // 构造方法,无参构造 ... 阅读全文
posted @ 2017-11-13 10:21 张立平 阅读(105) 评论(0) 推荐(0) 编辑
摘要: class Z private String name; private static int count; public Person() { count++; this.name = "NONAME - " + count; } public Person(String name) { this 阅读全文
posted @ 2017-11-13 10:16 张立平 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 1.id + 姓名 + name + 年龄+ age +地址 + city package zy; public class Z { public int id; public String name; public int age; public String city; public Strin 阅读全文
posted @ 2017-11-13 10:04 张立平 阅读(109) 评论(0) 推荐(0) 编辑
摘要: package zlp;import com.rupeng.game.GameCore;public class zlp implements Runnable { public static void main(String[] args) { GameCore.start(new zlp()); 阅读全文
posted @ 2017-10-22 21:41 张立平 阅读(112) 评论(0) 推荐(0) 编辑
摘要: /*程序员:张立平需求1:自动生成计算题并判断答案正误 */ import java.util.Scanner; public class Z{ public static void main(String[] args) { int number1=(int)(System.currentTime 阅读全文
posted @ 2017-10-21 15:28 张立平 阅读(96) 评论(0) 推荐(0) 编辑
摘要: /*程序员:张立平需求1:输出 "5+5="+5+5 */ import java.util.Scanner; public class Z{ public static void main(String[] args) { System.out.println("5+5="+5+5); }} /*程序员:张立平需求2:输出 自增自减 */ import java.util.Sca... 阅读全文
posted @ 2017-10-21 13:47 张立平 阅读(100) 评论(0) 推荐(0) 编辑