摘要:
import java.util.Arrays; import java.util.Scanner; public class ArraySortDemo { public static void main(String[] args) { double amoMoney[] = new doubl 阅读全文
摘要:
import java.util.Scanner; public class ArrayDemo2 { public static void main(String[] args) { // different ways to define an array int[] score = { 99, 阅读全文
摘要:
import java.util.Scanner; class ClassA { public static void main(String[] args) { // int i = 1; // switch (i) { // case 1: // System.out.println("i = 阅读全文
摘要:
class Car{ String color = "red"; int num = 4; void run() { System.out.println("Color = " + color); System.out.println("Num = " + num); } } class CarDe 阅读全文
摘要:
public class Array2Demo { public static void main(String[] args){ int[][] arr = new int [3][4]; arr[1][2] = 78; int[][] arr1 = new int[3][]; arr1[0] = 阅读全文
摘要:
/** * * @author a496006 * */ public class BubbleSort { // Bubble order public static void main(String[] args) { int k; Integer[] a = { 2, 1, 6, 5, 4, 阅读全文