public static void main(String[] args) { List list = new ArrayList(); List list1 = new ArrayList(); int[] a = {1,...
分类:
编程语言 时间:
2015-02-09 10:52:29
阅读次数:
223
程序代码using System;using System.IO;using System.Net;using System.Text;namespace ConsoleApplication1{class Program{static void Main(string[] args){//构造so...
分类:
Windows程序 时间:
2015-02-09 10:47:03
阅读次数:
5208
要直接使用自定义的对象进行传输,需要继承AbstractTemplate该类自定义的对象,一定要有@Message注解,负责会报错:@Messagepublic class TestObj { private int age; private String name; ...
分类:
其他好文 时间:
2015-02-09 10:46:15
阅读次数:
155
PHP的数据类型转换属于强制转换,允许转换的PHP数据类型有:?(int)、(integer):转换成整形?(float)、(double)、(real):转换成浮点型?(string):转换成字符串?(bool)、(boolean):转换成布尔类型?(array):转换成数组?(object):转...
分类:
Web程序 时间:
2015-02-09 10:41:42
阅读次数:
200
众所周知,JDK中以前String类中的substring方法存在内存泄漏问题,之所以说是以前,是因为JDK1.7及以后的版本已经修复了,我看都说JDK1.6的版本也存在这个问题,但是我本机上安装的1.6看了看源码不存在内存泄漏问题啊,又看了1.7的源码,和我本机的1.6的一样,是不是我的1.6版版其实是1.7的?!唉,不管了,反正1.7版本肯定没有这个问题(1.5及更老版本肯定有)了,大家就放心...
分类:
其他好文 时间:
2015-02-09 09:32:02
阅读次数:
134
如果要获得上传文件的原始名称,需要定义一个String类型的属性,属性名必须为***FileName,其中***为File属性的名称;同理,如果要获取该文件的MIME类型,需要定义一个***ContentType的String属性
单个文件上传
public class UploadAction extends ActionSupport{
private File image...
分类:
Web程序 时间:
2015-02-09 09:25:10
阅读次数:
171
Total Accepted: 421
Total Submissions: 1404
Given an input string, reverse the string word by word. A word is defined as a sequence of non-space characters.
The input string does not conta...
分类:
其他好文 时间:
2015-02-09 08:13:35
阅读次数:
117
方法的调用 delegate int test1(int a); class Program { static int num = 10; static void Main(string[] args) { ...
Given an input string, reverse the string word by word.For example,Given s = "the sky is blue",return "blue is sky the".click to show clarification.Cl...
分类:
其他好文 时间:
2015-02-09 00:43:53
阅读次数:
211