摘要: public class we { public static void main(String[] args) { int[] arr=new int[30]; arr[0]=1; arr[1]=1; for(int i=2;iarr[j]) { int temp; ... 阅读全文
posted @ 2017-11-21 19:08 GJ77 阅读(231) 评论(0) 推荐(0) 编辑
摘要: package sy; public abstract class Person { private String name; private int age; public String getName() { return name; } public void setName(String name) { this... 阅读全文
posted @ 2017-11-14 20:46 GJ77 阅读(166) 评论(0) 推荐(0) 编辑
摘要: package ty; abstract class A { public abstract void fun(); }; package ty; class B extends A { public void fun() { System.out.println("what is your name?"); } }; packa... 阅读全文
posted @ 2017-11-14 20:21 GJ77 阅读(190) 评论(0) 推荐(0) 编辑
摘要: n1 n2 n3 n4 阅读全文
posted @ 2017-11-07 22:18 GJ77 阅读(138) 评论(0) 推荐(0) 编辑
摘要: 圆的面积和周长 ——9.1 ——9.2 (合并) ——9.3 (TV) 阅读全文
posted @ 2017-11-07 19:55 GJ77 阅读(199) 评论(0) 推荐(0) 编辑
摘要: static属性和方法如何调用: 构造方法私有化(饿汉式) 空参构造自动命名(有参构造) 空参构造输出个数 static关键字 子父类 阅读全文
posted @ 2017-11-01 21:51 GJ77 阅读(207) 评论(0) 推荐(0) 编辑
摘要: package tyu; public class Person { public int id; public String name; public int age; public String city; public String introduce() { String songs = null; re... 阅读全文
posted @ 2017-10-29 19:02 GJ77 阅读(671) 评论(0) 推荐(0) 编辑
摘要: package asd; import com.rupeng.game.GameCore; public class ty implements Runnable { public static void main(String[] args){ GameCore.start(new ty()); } public void run() { ... 阅读全文
posted @ 2017-10-22 19:10 GJ77 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 3-1 import java.util.Scanner;public class Application { public static void main(String[] args){ int number1 =(int)(System.currentTimeMillis() % 10); i 阅读全文
posted @ 2017-10-15 21:22 GJ77 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 1. public class T{ public static void main (String[] args){ System.out.println("5+5="+5+5); } } 2.(a++是先使用后自增, ++a是先自增后使用 ) (1) public class G{ public 阅读全文
posted @ 2017-10-02 11:10 GJ77 阅读(188) 评论(1) 推荐(0) 编辑