摘要: package cn.cty; public class L { public static void main(String[] args) { int []arr = new int[30]; arr[0]=1; arr[1]=1; for(int i=2;i<arr.length;i++) a 阅读全文
posted @ 2017-12-18 14:02 Archon 阅读(135) 评论(0) 推荐(0) 编辑
摘要: abstract class A{ private String name; public A(String name) { this.name = name; } public String getName() { return this.name; } public abstract void fun(); } ... 阅读全文
posted @ 2017-12-18 13:59 Archon 阅读(127) 评论(0) 推荐(0) 编辑
摘要: 1package cty; public class PersonArray { public static void main(String args[]) { person per[]=new person[3]; per[0]=new person("XA",20); per[1]=new p 阅读全文
posted @ 2017-11-27 12:42 Archon 阅读(132) 评论(0) 推荐(0) 编辑
摘要: package cty; public abstract class Person { private String name; private int age; public String getName() { return name; } public void setName(String 阅读全文
posted @ 2017-11-20 12:22 Archon 阅读(95) 评论(0) 推荐(0) 编辑
摘要: 1 .packagecty; public class StaticDemo { public static void main(String args[]) { new StaticDemo().fun(); } private void fun() {System.out.println("XX 阅读全文
posted @ 2017-11-13 11:53 Archon 阅读(146) 评论(0) 推荐(0) 编辑
摘要: package cn.ch.w; public class Person { private String name; private static int count; public Person() { count++; System.out.println("产生了"+count+"xxxx。 阅读全文
posted @ 2017-11-06 13:46 Archon 阅读(106) 评论(0) 推荐(0) 编辑
摘要: package cty; public class L { public int id; public String name; public int age; public String city ; public String introduce (){ return +id+"我"+name+ 阅读全文
posted @ 2017-10-30 14:33 Archon 阅读(138) 评论(0) 推荐(0) 编辑
摘要: public double len(){ double length; length = Math.sqrt(this.x * this.y); return length; public void nor(){ this.x = this.x / length; this.y = this.y / 阅读全文
posted @ 2017-10-30 13:54 Archon 阅读(99) 评论(0) 推荐(0) 编辑
摘要: package cty; import java.util.Scanner; public class Test { public static void main(String[] args) { int A = (int) (System.currentTimeMillis() % 10); int B = ... 阅读全文
posted @ 2017-10-16 11:36 Archon 阅读(150) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner;public class Ly { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("输入x1和y1: 阅读全文
posted @ 2017-09-25 10:48 Archon 阅读(65) 评论(0) 推荐(0) 编辑