上一页 1 ··· 9 10 11 12 13
摘要: public class ConnMysql { public static void main(String[] args) throws ClassNotFoundException, SQLException { Class.forName("com.mysql.jdbc.Driver");... 阅读全文
posted @ 2015-09-03 18:13 32ddd 阅读(178) 评论(0) 推荐(0) 编辑
摘要: import java.util.HashMap; public class map1 { public static void main(String[] args) { String[] array = {"a","b","a","b","c","a","b","c","b"}; HashMap hm = new HashMap(); for (String str : a... 阅读全文
posted @ 2015-08-31 22:17 32ddd 阅读(1930) 评论(0) 推荐(0) 编辑
摘要: public class ASCTest { public static void main(String[] args) { /* 区别这两种 String s = "123"; int a1 = Integer.parseInt(s); a1 = Integer.valueOf(s); ... 阅读全文
posted @ 2015-08-23 10:56 32ddd 阅读(442) 评论(0) 推荐(0) 编辑
摘要: import java.util.Collection;import java.util.HashSet;public class CollectionStream { public static void main(String[] args) { Collection books = new ... 阅读全文
posted @ 2015-08-22 20:01 32ddd 阅读(163) 评论(0) 推荐(0) 编辑
摘要: import java.util.HashSet;import java.util.Collection;import java.util.function.Predicate;public class PredicateTest2 { public static void main(String... 阅读全文
posted @ 2015-08-22 16:49 32ddd 阅读(566) 评论(0) 推荐(0) 编辑
摘要: public static void main(String[] args) { String s = "A1B2C3D4E5F6G7H8"; String[] arr1 = s.split("[1-8]"); String[] arr2 = s.split("[A-H]");// Syst... 阅读全文
posted @ 2015-08-21 22:09 32ddd 阅读(216) 评论(0) 推荐(0) 编辑
摘要: public class test{ public static void main(String[] args) { String s = "ABCDEFG"; String s1 = null; s1 = s.replaceAll("CD", ""); System.out.printl... 阅读全文
posted @ 2015-08-21 21:17 32ddd 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 1 import java.util.Scanner; 2 public class ArithMetic { 3 public static void main(String[] args) { 4 calcArr(); 5 } 6 public static void calcArr() 7 { 8 int[] ... 阅读全文
posted @ 2015-08-21 20:40 32ddd 阅读(1306) 评论(3) 推荐(0) 编辑
摘要: 1 // 2 // Strcpy.c 3 // libin 4 // 5 // Created by 李宾 on 15/8/20. 6 // Copyright (c) 2015年 李宾. All rights reserved. 7 // 8 9 #include 10 #includ... 阅读全文
posted @ 2015-08-20 21:18 32ddd 阅读(237) 评论(0) 推荐(0) 编辑
上一页 1 ··· 9 10 11 12 13