摘要: import java.util.Arrays; import java.util.Scanner; public class ArraySortDemo { public static void main(String[] args) { double amoMoney[] = new doubl 阅读全文
posted @ 2016-09-23 14:50 mabelfdm 阅读(104) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner; public class ArrayDemo2 { public static void main(String[] args) { // different ways to define an array int[] score = { 99, 阅读全文
posted @ 2016-09-23 14:01 mabelfdm 阅读(73) 评论(0) 推荐(0) 编辑
摘要: import java.util.Scanner; class ClassA { public static void main(String[] args) { // int i = 1; // switch (i) { // case 1: // System.out.println("i = 阅读全文
posted @ 2016-09-23 13:35 mabelfdm 阅读(78) 评论(0) 推荐(0) 编辑
摘要: class Car{ String color = "red"; int num = 4; void run() { System.out.println("Color = " + color); System.out.println("Num = " + num); } } class CarDe 阅读全文
posted @ 2016-09-23 13:32 mabelfdm 阅读(91) 评论(0) 推荐(0) 编辑
摘要: 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] = 阅读全文
posted @ 2016-09-23 13:30 mabelfdm 阅读(98) 评论(0) 推荐(0) 编辑
摘要: /** * * @author a496006 * */ public class BubbleSort { // Bubble order public static void main(String[] args) { int k; Integer[] a = { 2, 1, 6, 5, 4, 阅读全文
posted @ 2016-09-23 13:27 mabelfdm 阅读(104) 评论(0) 推荐(0) 编辑