Java语言程序设计-基础篇
文章平均质量分 55
普通网友
这个作者很懒,什么都没留下…
展开
-
6-3 编程练习题答案
import java.util.Scanner;public class Test{ public static void main(String[] args) { int[] numbers = getArrays(); int[] counts = countIimes(numbers); displayNumbersTimes(counts); } publi原创 2014-06-17 16:04:09 · 390 阅读 · 0 评论 -
7-8 编程练习题答案
import java.util.Scanner;public class Test{ public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Enter the number of points: "); int numberOfPo原创 2014-06-21 15:00:30 · 493 阅读 · 0 评论 -
6-11 编程练习题答案
import java.util.Scanner;public class Test{ public static void main(String[] args) { System.out.print("Enter ten numbers: "); Scanner input = new Scanner(System.in); double[] numbers = new原创 2014-06-21 13:36:14 · 362 阅读 · 0 评论 -
6-18 编程练习题答案
import java.util.Scanner;public class Test{ public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Enter ten doubles: "); double[] list = new dou原创 2014-06-21 13:39:08 · 297 阅读 · 0 评论 -
6-13 编程练习题答案
import java.util.Scanner;public class Test{ public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Enter some numbers: "); int[] numbers = new in原创 2014-06-21 13:36:53 · 291 阅读 · 0 评论 -
6-15 编程练习题答案
import java.util.Scanner;public class Test{ public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Enter ten numbers: "); int[] numbers = new int原创 2014-06-21 13:37:51 · 277 阅读 · 0 评论 -
6-19 编程练习题答案
import java.util.Scanner;public class Test{ public static void main(String[] args) { System.out.print("Enter ten names and ten scores: "); Scanner input = new Scanner(System.in); String[] n原创 2014-06-21 13:39:30 · 384 阅读 · 0 评论 -
7-1 编程练习题答案
import java.util.Scanner;public class Test{ public static void main(String[] args) { System.out.println("Enter a 4-by-4 matrix row by row: "); Scanner input = new Scanner(System.in); int[][原创 2014-06-21 14:57:06 · 407 阅读 · 0 评论 -
6-14 编程练习题答案
import java.util.Scanner;public class Test{ public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Enter five numbers: "); int[] numbers = new in原创 2014-06-21 13:37:25 · 385 阅读 · 0 评论 -
7-3 编程练习题答案
import java.util.Scanner;public class Test{ public static void main(String[] args) { int[][] answers = { {'A', 'B', 'A', 'C', 'C', 'D', 'E', 'E', 'A', 'D'}, {'D', 'B', 'A', 'B', 'C', 'A',原创 2014-06-21 14:57:59 · 584 阅读 · 0 评论 -
6-16 编程练习题答案
import java.util.Arrays;public class Test{ public static void main(String[] args) { int[] numbers = new int[100000]; for(int i = 0; i < 100000; i++) numbers[i] = (int)(Math.random() * 100原创 2014-06-21 13:38:19 · 688 阅读 · 0 评论 -
7-2 编程练习题答案
import java.util.Scanner;public class Test{ public static void main(String[] args) { System.out.println("Enter a 4-by-4 matrix row by row: "); Scanner input = new Scanner(System.in); int[][原创 2014-06-21 14:57:31 · 480 阅读 · 0 评论 -
7-7 编程练习题答案
import java.util.Scanner;public class Test{ public static void main(String[] args) { double[][] points = { {-1, 0, 3}, {-1, -1, -1}, {4, 1, 1}, {2, 0.5, 9}, {3.5, 2, -1}, {3, 1.5, 3},原创 2014-06-21 15:00:09 · 473 阅读 · 0 评论 -
6-17 编程练习题答案
import java.util.Scanner;public class Test{ public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Enter ten doubles: "); double[] list = new dou原创 2014-06-21 13:38:43 · 339 阅读 · 0 评论 -
6-8 编程练习题答案
import java.util.Scanner;public class Test{ public static void main(String[] args) { System.out.print("Enter ten double numbers: "); Scanner input = new Scanner(System.in); double[] array =原创 2014-06-17 17:53:36 · 1089 阅读 · 0 评论 -
6-9 编程练习题答案
import java.util.Scanner;public class Test{ public static void main(String[] args) { System.out.print("Enter ten numbers: "); Scanner input = new Scanner(System.in); double[] numbers = new原创 2014-06-17 18:02:30 · 416 阅读 · 0 评论 -
6-10 编程练习题答案
import java.util.Scanner;public class Test{ public static void main(String[] args) { System.out.print("Enter ten numbers: "); Scanner input = new Scanner(System.in); double[] numbers = new原创 2014-06-17 18:12:04 · 381 阅读 · 0 评论 -
6-5 编程练习题答案
import java.util.Scanner;public class Test{ public static void main(String[] args) { int[] tmp = new int[10]; Scanner input = new Scanner(System.in); int[] array = new int[10]; System.原创 2014-06-17 15:56:46 · 454 阅读 · 0 评论 -
6-2 编程练习题答案
import java.util.Scanner;public class Test{ public static void main(String[] args) { final int NUMBER = 10; int[] numbers = new int[NUMBER]; Scanner input = new Scanner(System.in); System原创 2014-06-17 16:04:46 · 390 阅读 · 0 评论 -
6-1 编程练习题答案
import java.util.Scanner;public class Test{ public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print("Enter the number of students: "); int number =原创 2014-06-17 16:05:18 · 347 阅读 · 0 评论 -
6-7 编程练习题答案
public class Test{ public static void main(String[] args) { int[] randomNumbers = new int[100]; int[] counts = new int[10]; for(int i = 0; i < 100; i++) { randomNumbers[i] = (int)(Math.原创 2014-06-17 16:56:29 · 338 阅读 · 0 评论 -
6-4 编程练习题答案
import java.util.Scanner;public class Test{ final static int MAX = 100; public static void main(String[] args) { int[] scores = enterScores(); judgeScores(scores); } public static int[] e原创 2014-06-17 16:01:37 · 354 阅读 · 0 评论 -
6-6 编程练习题答案
public class Test{ public static void main(String[] args) { final int NUMBER_OF_PRIMES = 50; final int NUMBER_OF_PRIMES_PER_LINE = 10; int count = 0; int number = 2; int[] array = new int原创 2014-06-17 16:47:55 · 337 阅读 · 0 评论 -
7-5 编程练习题答案
import java.util.Scanner;public class Test{ public static void main(String[] args) { Scanner input = new Scanner(System.in); double[][] matrix1 = new double[3][3]; double[][] matrix2 = new原创 2014-06-21 14:59:20 · 324 阅读 · 0 评论 -
7-6 编程练习题答案
import java.util.Scanner;public class Test{ public static void main(String[] args) { Scanner input = new Scanner(System.in); double[][] matrix1 = new double[3][3]; double[][] matrix2 = new原创 2014-06-21 14:59:43 · 412 阅读 · 0 评论 -
7-4 编程练习题答案
public class Test1{ public static void main(String[] args) { int[][] workHours = { {2, 4, 3, 4, 5, 8, 8}, {7, 3, 4, 3, 3, 4, 4}, {3, 3, 4, 3, 3, 2, 2}, {9, 3, 4, 7, 3, 4, 1}, {3, 5, 4,原创 2014-06-21 14:58:57 · 293 阅读 · 0 评论