7 帝瓜

尚未进行身份认证

暂无相关描述

等级
博文 10
排名 123w+

多文件写出

publicString[]writeCsv(String[]values,Stringsuffix,Stringpath,Stringname){             Stringdate=this.getDate();             Stringdistinguish=this.excute(16);             String[]r

2014-11-14 11:13:07

读取xml配置文件

packagecom.lf.test;publicclassDoConfigVO{      privateStringxdrFolderName;     privateStringxdrFileName;     privateStringoriginalStreamFolderName;     privateString

2014-11-14 11:12:40

读取properties配置文件

packagecom.lf.test;importjava.io.IOException;importjava.io.InputStream;importjava.util.Properties; publicclassReadProperties{      publicvoidread(){             Stringa=this

2014-11-14 11:10:55

获取指定长度随机数和系统当前时间到毫秒

packageorg.fenixsoft.osgi.bundle; importjava.text.DateFormat;importjava.text.SimpleDateFormat;importjava.util.Calendar;importjava.util.Date;importjava.util.Random; publicclasst

2014-11-14 11:09:28

Socket发送普通消息到接口

packagesocket;importjava.net.*;importjava.io.*;publicclassMyConnection2{     publicstaticvoidmain(String[]args)throwsException   {       Socketsocket=newSocket("111.11

2014-11-14 11:08:08

Socket发送Bytes信息到接口

packagesocket; importjava.io.ByteArrayOutputStream; publicclassdd{      //转化字符串为十六进制编码       publicstaticStringtoHexString(Strings){       Stringstr="";       for

2014-11-14 11:00:27

十六进制转二进制

packagesocket; publicclassaaaa16t22{      publicstaticvoidmain(String[]args)    {        StringhexString="7e5a0032234100020000000054509bac000000002031643633363132346464356

2014-11-14 10:59:27

当前时间到1970-01-01 00:00:00 的毫秒数

packagesocket; importjava.text.ParseException;importjava.text.SimpleDateFormat;importjava.util.Date; publicclassaa{      publicstaticvoidmain(String[]args)throwsParseExcept

2014-11-14 10:58:36

多线程写文件

importjava.io.File;importjava.io.FileWriter;importjava.io.IOException;importjava.util.concurrent.Callable; publicclassGetCdrMultithreading{            classTaskWithResultimple

2014-11-14 10:48:55

java大数组拆分多个小数组

这几天用到不少小东西,先放到博客吧importjava.util.Random;publicclasscdsc{      publicStringexcute(intlength)   {       StringBufferbuffer=newStringBuffer("0123456789abcdefghijklmnopqrstuvwxyz")

2014-11-14 10:47:36
奖章
  • 持之以恒
    持之以恒
    授予每个自然月内发布4篇或4篇以上原创或翻译IT博文的用户。不积跬步无以至千里,不积小流无以成江海,程序人生的精彩需要坚持不懈地积累!