C#对象转JSON字符串和JSON字符串转对象 ? /* 创建者:菜刀居士的博客 ?* 创建日期: 2014年09月03号 ?* 功能: Json操作 ?* ? */ ? namespace Net.String.ConsoleApplication ?{ ??? using System; ??...
多态是编程语言给不同的底层数据类型做相同的接口展示的一种能力。一个多态类型上的操作可以应用到其他类型的值上面package peoplePack;public class JavaApp { public static void main(String[] args) { You...
分类:
编程语言 时间:
2015-02-17 09:11:23
阅读次数:
148
class Program { static void Main(string[] args) { init(); System.Console.ReadKey(); } #region 接口 ...
public class HelloBlog { private String txtContent = ""; public void write(String content) { this.txtContent = content; } public String read() { retur...
分类:
其他好文 时间:
2015-02-16 23:25:16
阅读次数:
144
jsp中,在接受request的中文字符时,显示出来的是乱码,jsp中含客户提交的含有汉字的数据,要采用特殊的处理方式,先将得到的字符串用iso-8859-1编码,并放到一个字节数组中,再用String类的构造函数将其转换为字符串对象,例如,下面的student的Name是ISO-8859-1的,要...
分类:
Web程序 时间:
2015-02-16 20:59:34
阅读次数:
411
Distinct SubsequencesGiven a stringSand a stringT, count the number of distinct subsequences ofTinS.A subsequence of a string is a new string which is...
分类:
其他好文 时间:
2015-02-16 20:58:05
阅读次数:
180
md5: private string MD5(string source) { StringBuilder sb = new StringBuilder(); System.Security.Cryptography.MD5 md5 = S...
分类:
编程语言 时间:
2015-02-16 20:56:44
阅读次数:
189
首先要定义一个显示验证信息的类如: 1 public interface ReturnObject { 2 3 public boolean isSuccess(); 4 5 public String getReason(); 6 7 } 8 9 public class ...
分类:
编程语言 时间:
2015-02-16 19:35:34
阅读次数:
154
private void addCookie(HttpServletResponse response ,String username,String password) { Cookie name = new Cookie("userName", username); Cookie pwd =.....
分类:
其他好文 时间:
2015-02-16 19:31:30
阅读次数:
259
由leetcode139题Word Break产生的对动态规划的一点思考。
题目要求是这样的:
Given a string s and a dictionary of words dict,determine if s can be segmented into a space-separatedsequence of one or more dictionary words.
For e...
分类:
其他好文 时间:
2015-02-16 16:59:00
阅读次数:
158