- 博客(31)
- 收藏
- 关注
转载 ListToArray
List<String> list = new ArrayList<>();list.add("a");list.add("b");list.add("c");list.add("d");// String[] str=new String[list.size()];String[] str = new String[0];...
2017-03-01 10:14:00 123
转载 WalkDirThreads
package searchdir;import java.io.File;import java.util.concurrent.ExecutorService;import java.util.concurrent.Executors;import java.util.concurrent.Future;public class WalkDirThre...
2017-02-20 19:16:00 108
转载 WalkDirFiles
package searchdir;import java.io.File;public class WalkDir { public static void main(String[] args) { File file = new File("/System"); listF(file); } public sta...
2017-02-20 19:15:00 122
转载 http://ocpj8.javastudyguide.com/
http://ocpj8.javastudyguide.com/转载于:https://www.cnblogs.com/mabel/p/6349639.html
2017-01-25 16:13:00 172
转载 打印文件夹中的文件
packageintensiveexercise;importjava.io.IOException;importjava.nio.file.Files;importjava.nio.file.Path;importjava.nio.file.Paths;importjava.util.concurrent.ExecutorService...
2017-01-25 13:29:00 115
转载 apple
http://www.apple.com/cn_epp-discounted_803213/shop/token/207bfbef-044c-45df-b47a-57a1e1b6c170转载于:https://www.cnblogs.com/mabel/p/6344521.html
2017-01-23 17:02:00 195
转载 JDBC
public class DBUtil {private static Connection conn;public static Connection getConnection(){try {Class.forName("com.mysql.jdbc.Driver");String url = "jdbc:mysql://localhost:3306/fidel...
2017-01-18 22:37:00 88
转载 JDBC connection
package javaexercise;import java.sql.Connection;import java.sql.DriverManager;import java.sql.ResultSet;import java.sql.SQLException;import java.sql.Statement;public class Q29jdbc {stat...
2017-01-18 22:34:00 76
转载 Properties-getProperty
packageintensiveexercise;importjava.io.FileInputStream;importjava.io.IOException;importjava.util.Properties;///http://www.cnblogs.com/bakari/p/3562244.htmlpublicclass Q18Pr...
2017-01-17 13:22:00 122
转载 删除目录中指定文件
packageintensiveexercise;importjava.io.File;publicclass Q13 {public static void main(String[] args) {recDelete("Q:/Users/a496006.DMN1.000/Desktop/q13");}public st...
2017-01-17 10:07:00 80
转载 打印文件中的内容
package intensiveexercise;import java.io.IOException; import java.nio.file.Files; import java.nio.file.Path; import java.nio.file.Paths; import java.util.List; import java.util.stream.Stream;...
2017-01-17 10:06:00 96
转载 print directory(打印目录)
package util.filereader;import java.io.File;import java.io.IOException;public class PrintDirectory { public static void main(String[] args) { File file = new File("Q:/Users/a496006.DM...
2016-12-01 11:30:00 207
转载 FileRW
packagefilereader;importjava.io.FileNotFoundException;importjava.io.FileReader;importjava.io.FileWriter;importjava.io.IOException;importjava.io.Reader;importjava.io.W...
2016-12-01 10:22:00 148
转载 Sql对应关系显示_list
packagecom20161125;publicclass SqlElementsWrapper {/** oriOutput: {a.*}, {b.*}, a.runId* alias: a, b* table: TableA, TabelB*/String oriOutput;String alias;String table;...
2016-11-28 15:32:00 128
转载 sql 语句对应关系显示 _set
packagecom20161125;publicclass SqlElementsWrapper {/** oriOutput: {a.*}, {b.*}, a.runId* alias: a, b* table: TableA, TabelB*/String oriOutput;String alias;String table;...
2016-11-28 13:52:00 81
转载 sql 语句对应关系显示
import java.util.HashMap;import java.util.Map;import java.util.Map.Entry;publicclass SqlStringParseDemo {publicstaticvoid main(String[] args) {Stringsql = "Select {a.*},{b.*},...
2016-11-14 16:04:00 164
转载 ListDemo(通过List接口的实现类ArrayList实现)
ListDemo(通过List接口的实现类ArrayList实现需求)元素个数不确定要求获得元素的实际个数按照存储顺序获取并打印元素信息package com1018;import java.util.ArrayList;import java.util.Iterator;import java.util.List;/****...
2016-10-18 13:34:00 486
转载 判断子字符出现次数
importjava.util.Scanner;publicclass CharCount {public static void main(String[] args) {Scanner input = new Scanner(System.in);System.out.print("Please input a String: ");St...
2016-10-13 15:28:00 51
转载 StringBufferDemo(将一个数字字符串转换成逗号分隔的数字串)
packagepractice2;importjava.util.Scanner;publicclass StringBufferDemo {public static void main(String[] args) {Scanner input = new Scanner(System.in);System.out.print("Pl...
2016-10-11 15:17:00 1218
转载 ExceptionDemo1
packagepractice2;importjava.util.Scanner;publicclass ExceptionDemo2 {public static void main(String[] args) {try {className();} catch (Exception e) {e.getMessag...
2016-10-10 15:16:00 132
转载 abstract class and duotai
packagedemo.duotai;publicabstract class Pet {private int health;public Pet(int health) {this.health = health;}public int getHealth() {if (health > 0) {return healt...
2016-09-28 16:40:00 111
转载 Extends Demo
packagedemo.extend;class Vehicle {String type = "4w";int maxSpeed = 100;Vehicle(){System.out.println("this is a father construtor");}Vehicle(String type, int maxSpeed){th...
2016-09-27 17:07:00 106
转载 ArraySortDemo
importjava.util.Arrays;importjava.util.Scanner;publicclass ArraySortDemo {public static void main(String[] args) {double amoMoney[] = new double[5];double sumTotal = 0.0;...
2016-09-23 14:50:00 89
转载 Array2Demo
publicclass Array2Demo {public static void main(String[] args){int[][] arr = new int [3][4];arr[1][2] = 78;int[][] arr1 = new int[3][];arr1[0] =new int[3];arr1[1] = new int...
2016-09-23 13:30:00 87
转载 Bubble Sort
/****@author a496006**/publicclass BubbleSort {// Bubble orderpublic static void main(String[] args) {int k;Integer[] a = { 2, 1, 6, 5, 4, 3 };for (int i = 0; i &...
2016-09-23 13:27:00 72
转载 car demo
classCar {String color = "red";int num = 4;void run() {System.out.println("Color" + color);}}classCarDemo {public static void main(String[] args){Car c=new...
2016-09-02 17:50:00 117
转载 SetDemo
package test1;import java.util.HashSet;import java.util.Set;public class SetCase {// List Map Set ArrayString[] array = { "a", "b", "c" };public static void main(String[] args) {Se...
2016-08-28 21:30:00 274
转载 listDemo
package test1;import java.util.ArrayList;import java.util.Collections;import java.util.List;public class ListExample {public static void main(String[] args) {new ListExample().testList...
2016-08-28 21:29:00 276
转载 mapDemo
package test1;import java.util.HashMap;import java.util.Map;import java.util.Map.Entry;public class MapCase {public static void main(String[] args) {//("1","a") ("2","b")Map<Str...
2016-08-28 21:29:00 84
转载 Select Sort
publicclass ArrayDemoSelectSort {private void printArr(int[] arr1) {// TODO Auto-generated method stubfor (int obj : arr1) {System.out.print(obj);}}private void sortArr(int[...
2016-08-22 13:43:00 50
转载 印度英语的特点
印度英语的特点我们把英美以外的国家的英语发音做了个分类,难易程度分为三档:第一档以澳大利亚为代表,只要懂一个不同的词的口音就够了,比如data在澳洲的发音“打他”,这就足够了,剩下的都一样;第二档以新加坡为代表,对于新加坡英语发音,只要背过“一颗真实的树”就够了。因为在新加坡英语里面的One,Two, Three,发音对应为标准的One,True,Tree,走到哪里都是这个发音;...
2011-03-22 20:36:00 263
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人