/// /// 获取当前时间戳 /// /// 为真时获取10位时间戳,为假时获取13位时间戳. /// public static string GetTimeStamp(bool bflag = true) { TimeSpan ts = DateTime.UtcNo...
一、Commons BeanUtils说明:针对Bean的一个工具集。由于Bean往往是有一堆get和set组成,所以BeanUtils也是在此基础上进行一些包装。二、Commons CLI说明:这是一个处理命令的工具。比如main方法输入的string[]需要解析。你可以预先定义好参数的规则,然后...
分类:
Web程序 时间:
2015-05-24 15:24:38
阅读次数:
309
//客户端程序1:ChatClient.javaimport java.io.*;
import java.net.*;
import java.applet.Applet;
public class ChatServer {
public static void main(String[]args){
try{
ServerSocket server = null;
try{...
分类:
编程语言 时间:
2015-05-24 14:20:05
阅读次数:
119
Longest Palindromic Substring
题目:
Given a string S, find the longest palindromic substring in S. You may assume that the maximum length of S is 1000, and there exists one unique longest palindrom...
分类:
其他好文 时间:
2015-05-24 14:19:55
阅读次数:
146
实例(从小向大排序)://数组冒泡算法import java.util.Scanner;public class Test{ public static void main(String[] args){ int[] arr = {23,12,45,24,87,65,...
分类:
编程语言 时间:
2015-05-24 14:14:00
阅读次数:
140
public class Main { public static void main(String[] args) { Map mapA=new HashMap(); Map mapB=new HashMap(); Stu stu=new Stu()...
分类:
其他好文 时间:
2015-05-24 14:11:39
阅读次数:
117
一、复制数组算法//数组复制算法public class Test{ public static void main(String[] args){ int[] arrA = {100,800,500,600,700}; int[] arrB...
分类:
编程语言 时间:
2015-05-24 14:06:59
阅读次数:
161
在使用Gson解析JSON数据时,报错:Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 3939原因:传入的参数有问题;while((len=input...
分类:
编程语言 时间:
2015-05-24 14:05:23
阅读次数:
430
/**(2) PHP文件目录copy @param string $dirsrc 原目录名称字符串 @param string $dirto 目标目录名称字符串 */function copyDir($dirSrc,$dirTo){ if(is_file($...
分类:
Web程序 时间:
2015-05-24 12:53:51
阅读次数:
204
Given a string S and a string T, count the number of distinct subsequences of T in S.A subsequence of a string is a new string which is formed from th...
分类:
编程语言 时间:
2015-05-24 12:51:44
阅读次数:
114