码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
(转)C#生成时间戳
/// /// 获取当前时间戳 /// /// 为真时获取10位时间戳,为假时获取13位时间戳. /// public static string GetTimeStamp(bool bflag = true) { TimeSpan ts = DateTime.UtcNo...
分类:Windows程序   时间:2015-05-24 15:37:41    阅读次数:395
Apache Commons介绍(转载)
一、Commons BeanUtils说明:针对Bean的一个工具集。由于Bean往往是有一堆get和set组成,所以BeanUtils也是在此基础上进行一些包装。二、Commons CLI说明:这是一个处理命令的工具。比如main方法输入的string[]需要解析。你可以预先定义好参数的规则,然后...
分类:Web程序   时间:2015-05-24 15:24:38    阅读次数:309
java第三次作业:Java与socket实现
//客户端程序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
leetcode 5 -- Longest Palindromic Substring
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
JAVA 冒泡排序
实例(从小向大排序)://数组冒泡算法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
Map里面存放的是对象的引用
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
JAVA 数组算法(复制、查找、插入)
一、复制数组算法//数组复制算法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
Caused by: java.lang.IllegalStateException: Expected BEGIN_OBJECT but was STRING at line 1 column 3939
在使用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
PHP文件目录copy
/**(2) PHP文件目录copy @param string $dirsrc 原目录名称字符串 @param string $dirto 目标目录名称字符串 */function copyDir($dirSrc,$dirTo){ if(is_file($...
分类:Web程序   时间:2015-05-24 12:53:51    阅读次数:204
Java for LeetCode 115 Distinct Subsequences【HARD】
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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!