Java
zzsTornado
这个作者很懒,什么都没留下…
展开
-
用java实现插入排序代码
package aa;import java.util.Arrays;public class charupaixu { public static void main(String[] args) { int tmp; int[] a = {5,6,3,7,9,4,6,3,4}; for (int i = 0; i < a.length; i++) { tmp = a原创 2014-11-05 22:18:30 · 423 阅读 · 0 评论 -
java身份证验证是否有效(控制台输出)
package practice;import java.util.Scanner;public class Demo1 { public static void main(String[] args) { compare();//封装 } public static void compare() { Scanner scanner = new Scanner(Sy原创 2014-11-03 21:31:27 · 445 阅读 · 1 评论 -
用Java实现冒泡排序
package aa;import java.util.Arrays;public class maopaopaixu { public static void main(String[] args) { int[] a = {5,4,7,3,8,1,9,0,2,6}; for (int i = 0; i < a.length-1; i++) { for (int j =原创 2014-11-05 22:28:10 · 280 阅读 · 0 评论 -
Java编写双色球程序
package practice;import java.util.Arrays;import java.util.Random;import java.util.Scanner;public class shuangseqiu { public static void main(String[] args) { String[] redball = { "01", "02",原创 2014-11-05 22:34:55 · 1275 阅读 · 0 评论