public static Long dateDiff(String startTime, String endTime, String format, String str) { // 按照传入的格式生成一个simpledateformate对象 SimpleD...
分类:
编程语言 时间:
2015-02-03 22:37:04
阅读次数:
335
本文直接转载,非原创!仅记录供自己学习之用。出处:http://blog.csdn.net/y990041769/article/details/8763366在学习c++STL中的string,在这里做个笔记,以供自己以后翻阅和初学者参考。1:string对象的定义和初始化以及读写string s...
分类:
编程语言 时间:
2015-02-03 22:34:33
阅读次数:
239
一、整体配置及开发流程1.首先写javabean,并生成响应的getter、setter方法,一般继承ActionSupport,须有一个抛出Exception的方法,且返回值为String类型;2.配置Web.xmlstruts2org.apache.struts2.dispatcher.ng.f...
分类:
Web程序 时间:
2015-02-03 22:32:40
阅读次数:
167
Given a string s, partition s such that every substring of the partition is a palindrome.
Return the minimum cuts needed for a palindrome partitioning of s.
For example, given s = "aab",
Retu...
分类:
其他好文 时间:
2015-02-03 21:27:35
阅读次数:
196
一:看程序
{CSDN:CODE:596872}
二:分析
(1)当i能被10整除的时候,让出线程。
if(i % 10 == 0){
yield();
}
(2)MyThread(String name) {
super(name);
}
这个构造方法,可以给线程起名字。
创建线程的时候,可以指定名字MyThread t1 = new...
分类:
编程语言 时间:
2015-02-03 21:26:59
阅读次数:
156
//MyString.h
#pragma once
#include
using namespace std;
class MyString
{
private:
char *m_ptr;//内存空间
public:
MyString(const char *str=NULL);//构造函数
MyString(const MyString& obj); //拷贝构造函数
~MyS...
分类:
其他好文 时间:
2015-02-03 21:25:29
阅读次数:
311
第一点:Java代码实现文件上传FormFile file=manform.getFile(); String newfileName = null; String newpathname=null; String fileAddre="/numUp"; try { InputStre...
分类:
编程语言 时间:
2015-02-03 21:12:02
阅读次数:
241
定义wrap类,声明native函数,加载库package com.ndk.hello;public class Classs { public native String say_hello(); static { System.loadLibrary("Hello...
分类:
移动开发 时间:
2015-02-03 21:11:52
阅读次数:
180
The string"PAYPALISHIRING"is written in a zigzag pattern on a given number of rows like this: (you may want to display this pattern in a fixed font fo...
分类:
其他好文 时间:
2015-02-03 21:04:41
阅读次数:
133
String类的一些特点 1:它是一个特殊类,一旦被初始化,内容就不可以被改变,一般有两种初始化的方式 --| String s1 = “abc”;//abc存在字符串常量池中,它就是一个对象,以后有代码需要使用到abc的话,可以直接使用,不用在去开辟字符串abc的空间 --| Strin...
分类:
其他好文 时间:
2015-02-03 20:56:10
阅读次数:
180