摘要: 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) 编辑