2017年12月18日

10.16游戏第8次作业

摘要: package cn.wzx.www; import com.rupeng.game.GameCore; public class basicGame implements Runnable { public static void main(String[] args) { // TODO 自动生成的方法存根 GameCore.start(new ... 阅读全文

posted @ 2017-12-18 13:59 kally1004 阅读(97) 评论(0) 推荐(0) 编辑

2017年11月27日

11.20第13次作业选择排序法 冒泡排序法

摘要: 1. package com.Hani; public class XuanZe { //选择法 public static void main(String[] args){ int[] arr={22,43,26,7,37,66,237,64}; for(int i=0;i<arr.length 阅读全文

posted @ 2017-11-27 13:55 kally1004 阅读(92) 评论(0) 推荐(0) 编辑

2017年11月20日

11.13第12次作业

摘要: 1 this关键字 2 父类 3. 4.工人学生 5.抽象类 package cn.dede.w;abstract class A3{ public abstract void fun();}class B3 extends A3{ public void fun() { System.out.pr 阅读全文

posted @ 2017-11-20 13:55 kally1004 阅读(83) 评论(0) 推荐(0) 编辑

2017年11月13日

11.6第11次作业

摘要: 4 package com.atlu; public class StaticDemo { public static void main(String args[]){ new StaticDemo().fun(); } public void fun(){ System.out.println( 阅读全文

posted @ 2017-11-13 12:09 kally1004 阅读(146) 评论(0) 推荐(0) 编辑

2017年11月6日

10.30第10次作业

摘要: 匿名对象、单例模式饿汉式、自动生成对象args[]数组使用、静态关键字 package practice; class Person { private String name; private static int count; public Person(){ count++; this.nam 阅读全文

posted @ 2017-11-06 13:57 kally1004 阅读(89) 评论(0) 推荐(0) 编辑

2017年10月30日

10.23创造人第9次作业

摘要: public class Demoperson { public static void main(String[] args) { // TODO Auto-generated method stub person p1=new person(001,"刘备",40,"北京"); person p 阅读全文

posted @ 2017-10-30 14:34 kally1004 阅读(67) 评论(0) 推荐(0) 编辑

2017年10月23日

10.9

摘要: package cn.wzx.www; import java.util.Scanner; public class SubtractionQuiz { public static void main(String[] args) { // TODO 自动生成的方法存根 int number1=(i 阅读全文

posted @ 2017-10-23 13:33 kally1004 阅读(177) 评论(0) 推荐(0) 编辑

9.25

摘要: public class Sum { public static void main(String[] args) { System.out.println("5+5="+5+5); } } public class Increment{ public static void main(String 阅读全文

posted @ 2017-10-23 13:04 kally1004 阅读(93) 评论(0) 推荐(0) 编辑

2017年9月25日

练习题

摘要: 1、输出一个长整型的变量 public class Long{ public static void main(String[] args) { long l=123456789012345l;//java中默认类型为Int型,电脑想要识别长整型需加l(或L) System.out.println( 阅读全文

posted @ 2017-09-25 13:11 kally1004 阅读(75) 评论(0) 推荐(0) 编辑

2017年9月18日

作业2.6-2.15 两次作业

摘要: 2.6 求一整数个位数之和 import java.util.Scanner;public class NumberSum{ public static void main(String[] args) { int a,b,c,sum=0; Scanner input =new Scanner(Sy 阅读全文

posted @ 2017-09-18 11:33 kally1004 阅读(90) 评论(0) 推荐(0) 编辑

导航