摘要:
public class ConnMysql { public static void main(String[] args) throws ClassNotFoundException, SQLException { Class.forName("com.mysql.jdbc.Driver");... 阅读全文
摘要:
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... 阅读全文
摘要:
public class ASCTest { public static void main(String[] args) { /* 区别这两种 String s = "123"; int a1 = Integer.parseInt(s); a1 = Integer.valueOf(s); ... 阅读全文
摘要:
import java.util.Collection;import java.util.HashSet;public class CollectionStream { public static void main(String[] args) { Collection books = new ... 阅读全文
摘要:
import java.util.HashSet;import java.util.Collection;import java.util.function.Predicate;public class PredicateTest2 { public static void main(String... 阅读全文
摘要:
public static void main(String[] args) { String s = "A1B2C3D4E5F6G7H8"; String[] arr1 = s.split("[1-8]"); String[] arr2 = s.split("[A-H]");// Syst... 阅读全文
摘要:
public class test{ public static void main(String[] args) { String s = "ABCDEFG"; String s1 = null; s1 = s.replaceAll("CD", ""); System.out.printl... 阅读全文
摘要:
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[] ... 阅读全文
摘要:
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... 阅读全文