摘要: 类图 走进去(静态) 走出来 开门(静态) 关门 阅读全文
posted @ 2019-09-26 15:53 徐丶杨 阅读(99) 评论(0) 推荐(0) 编辑
摘要: package 第十二次; public abstract class Person { private String name; private int age; public String getName() { return name; } public void setName(String name) { thi... 阅读全文
posted @ 2017-12-04 21:49 徐丶杨 阅读(115) 评论(0) 推荐(0) 编辑
摘要: package 第十一次; class A{ private B b = null ; public void fun() { this.b = new B(this); this.b.fun() ; } public void print() { System.out.println("Hello World!!!... 阅读全文
posted @ 2017-12-04 21:08 徐丶杨 阅读(69) 评论(0) 推荐(0) 编辑
摘要: package 第十次; public class Shiyi { public static void main(String[] args) { // TODO Auto-generated method stub new Shiyi().fun(); } public void fun() { System.... 阅读全文
posted @ 2017-11-20 10:22 徐丶杨 阅读(143) 评论(0) 推荐(0) 编辑
摘要: package 第九; public class Jiuyi { // 两个方面一个是字段也称属性,另一个是方法,也称实现的功能 private double radius; // 构造方法,有参构造 public Jiuyi(double radius) { this.radius = radius; } //方法的重载,参数... 阅读全文
posted @ 2017-11-20 10:04 徐丶杨 阅读(168) 评论(0) 推荐(0) 编辑
摘要: class Person1{ private String name; private static int count; public Person1() { count++; this.name = "NONAME - " + count; } public Person1(String name) { ... 阅读全文
posted @ 2017-11-05 22:26 徐丶杨 阅读(104) 评论(0) 推荐(0) 编辑
摘要: import com.rupeng.game.GameCore;//导入游戏引擎包 public class Jiemian implements Runnable{ public static void main(String[] args) { // TODO Auto-generated method stub GameCore.start(new Jiemian());/... 阅读全文
posted @ 2017-11-05 17:18 徐丶杨 阅读(144) 评论(0) 推荐(0) 编辑
摘要: public class T { public int id; public String name; public int age; public String city; public String introduce() {return + id + ": 我是 " + name + ", 年龄" + age + ", 所在区" + city ;} ... 阅读全文
posted @ 2017-11-05 15:24 徐丶杨 阅读(90) 评论(0) 推荐(0) 编辑
摘要: 3-2 3-3 3-4 3-5 3-6 3-7 3-8 3-9 阅读全文
posted @ 2017-10-22 12:38 徐丶杨 阅读(237) 评论(0) 推荐(0) 编辑
摘要: public class X{ public static void main(String[] args){ //第一题 System.out.println("5+5="+5+5); //第二题 int a=3,b; b=a++; System.out.println("a="+a+",b="+ 阅读全文
posted @ 2017-10-01 14:01 徐丶杨 阅读(223) 评论(0) 推荐(0) 编辑