摘要: public class Ebullitionpublic static void main(String[] args) {int[] arr={4,8,10,74,68,16,-4,0,1,53,500,153,6};for(int i=0;i<arr.length;i++){for(int j=arr.length-1;j>0;j--){if(arr[j]<arr[j-1]... 阅读全文
posted @ 2009-09-17 01:19 kanjc 阅读(305) 评论(0) 推荐(0) 编辑
摘要: publicclass Test{public static void main(String[] args) {int word=0;for(int i=0;i<=200;i++){if(i%7==0&i%4!=0){System.out.print(" "+i);word++;if(word%6 == 0){System.out.println();}}}}} 阅读全文
posted @ 2009-09-17 01:05 kanjc 阅读(1053) 评论(0) 推荐(0) 编辑
摘要: public class Ou{public static void mian(String[] args){int a=0; for(int i=0;i<100;i++){ a=a+1; if(i%2==1){ System.out.println(a); } } }}public class Qi{public static void mian(String[] args){ int a... 阅读全文
posted @ 2009-09-17 00:53 kanjc 阅读(1790) 评论(0) 推荐(0) 编辑
摘要: public class ShuiXian{public static void main(String[] args) { for(int a=100;a<999;a++){int b=a/100; int c=a/10%10; int d=a%10; int j=b*b*b+c*c*c+d*d*d; if(j==a){ System.out.println(j); } }}} 阅读全文
posted @ 2009-09-17 00:40 kanjc 阅读(743) 评论(0) 推荐(0) 编辑
摘要: /** 4.创建一个类Game,石头,剪刀,布的游戏。*/public class Game {/** * @param args */String[] s ={"石头","剪刀","布"}; //获取电脑出拳String getComputer(int i){String computerGuess = s[i];return computerGuess;}//判断人出拳是否为石头,剪刀,布bo... 阅读全文
posted @ 2009-09-17 00:23 kanjc 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 用了一个月的时间用JavaSE开发了资产管理系统下载地址 http://files.cnblogs.com/kanjingcai/JavaSE数据库管理系统设计.rar 阅读全文
posted @ 2009-09-01 18:39 kanjc 阅读(228) 评论(0) 推荐(0) 编辑
摘要: /** To change this template, choose Tools | Templates* and open the template in the editor.*/package 魔板游戏;/**** @author Administrator*/import java.awt.*;import java.awt.event.*;import javax.swing.*;im... 阅读全文
posted @ 2009-05-13 23:39 kanjc 阅读(487) 评论(0) 推荐(0) 编辑
摘要: http://files.cnblogs.com/kanjingcai/最好的截图软件.rar 這是一種截圖的好軟件, 阅读全文
posted @ 2009-05-03 13:34 kanjc 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 11:34:01http://files.cnblogs.com/kanjingcai/bingzhuliangyi.pdf 阅读全文
posted @ 2009-05-01 11:25 kanjc 阅读(106) 评论(0) 推荐(0) 编辑
摘要: 在JAVA程序设计中,事件的处理是非常重要的,尤其是在需要自定义事件和设计JavaBean时.对事件的处理过程有一个完整的认识对于编程是很有帮助的。 下面用一个演示性的例子来说明事件及其处理过程 一.事件的组成 如果想要自定义一个事件,则必须提供一个事件的监听接口以及一个事件类。在JAVA中监听接口继承java.util.EventListener,事件类继承java.uti... 阅读全文
posted @ 2009-05-01 00:42 kanjc 阅读(261) 评论(0) 推荐(0) 编辑