摘要: import java.util.Arrays;import java.util.Random;public class BubbleSort { public static void main(String[] args){ //创建数组 int[] arr = new int[10]; Rand 阅读全文
posted @ 2017-05-31 15:43 两枝梅 阅读(84) 评论(0) 推荐(0) 编辑
摘要: import java.util.Arrays;import java.util.Random;public class MaxOfArray { public static void main(String[] args){ //创建一个10个长度的数组 int[] arr = new int[1 阅读全文
posted @ 2017-05-31 15:33 两枝梅 阅读(532) 评论(0) 推荐(0) 编辑
摘要: import java.util.Arrays;import java.util.Random;public class MaxOfArray { public static void main(String[] args){ //创建一个10个长度的数组 int[] arr = new int[1 阅读全文
posted @ 2017-05-31 15:29 两枝梅 阅读(446) 评论(0) 推荐(0) 编辑
摘要: public class MultiplicationTable { public static void main(String[] args){ //i变量用于控制行数 for(int i=1;i<10;i++){ //j变量用于控制每行中参与计算的最大数值:与行数相等 for(int j=1; 阅读全文
posted @ 2017-05-31 15:23 两枝梅 阅读(134) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner;public class AddCode { public static void main(String[] args){ System.out.println("即将开始10次加法测试。。。"); Scanner sc = new Scanner 阅读全文
posted @ 2017-05-31 15:15 两枝梅 阅读(279) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner;public class NumberGuessV02 { public static void main(String[] args){ //生成一个随机数 int num = (int)(Math.random()*1000)+1; //准备输入 阅读全文
posted @ 2017-05-31 14:30 两枝梅 阅读(679) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner;public class GuessingGame { public static void main(String[] args){ int count = 0; char[] input = null; int[] result = new in 阅读全文
posted @ 2017-05-31 14:22 两枝梅 阅读(217) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner;public class NumberGuessV01 { public static void main(String[] ages){ //生成随机数 int num = (int)(Math.random()*1000)+1; System.o 阅读全文
posted @ 2017-05-31 14:20 两枝梅 阅读(1728) 评论(0) 推荐(0) 编辑