摘要: package Hzy; public class Circle { private double radius; public Circle(double radius) { this.radius = radius; } public Circle() { this.radius = 1; } publ... 阅读全文
posted @ 2017-12-18 15:52 lixiaohui741 阅读(137) 评论(0) 推荐(0)
摘要: package cn.wzx.www; public abstract class Person { private String name; private int age; public Person(String name,int age){ this.name=name; this.age= 阅读全文
posted @ 2017-11-12 21:54 lixiaohui741 阅读(122) 评论(0) 推荐(0)
摘要: 1 package lxh; 2 3 public class feiponaqi { 4 public static void main(String[] args) { 5 int[] arr = new int [30]; 6 arr[0] = 1; 7 arr[1] = 1; 8 for(int ... 阅读全文
posted @ 2017-11-12 21:50 lixiaohui741 阅读(154) 评论(0) 推荐(0)
摘要: package lxh; public abstract class A { private String name; public A(String name) { this.name=name; } public String getName() { return this.name; } public ab... 阅读全文
posted @ 2017-10-15 22:11 lixiaohui741 阅读(79) 评论(0) 推荐(0)
摘要: 1 package Hzy; 2 3 public class StaticDemo05 { 4 public static void main(String args[]) { 5 new StaticDemo05().fun() ; 6 } 7 public void fun() { 8 System.out.... 阅读全文
posted @ 2017-10-08 21:47 lixiaohui741 阅读(108) 评论(0) 推荐(0)
摘要: package zuoye; class Person{ private String name; private int age; static String city = "A城"; public Person(String name,int age) { this.name = name; this.age = age; ... 阅读全文
posted @ 2017-09-18 10:08 lixiaohui741 阅读(122) 评论(0) 推荐(0)
摘要: package lianxi; public class Q { public int id;public String name;public int age;public String city;public String introduce() {return "My id=" + id + 阅读全文
posted @ 2017-09-17 22:48 lixiaohui741 阅读(114) 评论(1) 推荐(0)
摘要: 4. 5./**功能:输出字符型的加法计算*/ public class Sop{ public static void main(String[] args) { System.out.println((char)('a'+1)); System.out.println((char)('你'+1) 阅读全文
posted @ 2017-09-17 22:44 lixiaohui741 阅读(145) 评论(0) 推荐(0)
摘要: 2.6import java.util.Scanner; public class test{ public static void main(String[] args) { int a; Scanner input=new Scanner(System.in); System.out.pr... 阅读全文
posted @ 2017-09-17 22:37 lixiaohui741 阅读(133) 评论(0) 推荐(0)
摘要: 作业1 public class Demo1 { public static void main(String[] args) throws Exception { System.out.println(" J A V V A"); System.out.println(" J A A V V A  阅读全文
posted @ 2017-09-17 22:36 lixiaohui741 阅读(88) 评论(0) 推荐(0)