码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
C#对象转JSON字符串和JSON字符串转对象
C#对象转JSON字符串和JSON字符串转对象 ? /* 创建者:菜刀居士的博客 ?* 创建日期: 2014年09月03号 ?* 功能: Json操作 ?* ? */ ? namespace Net.String.ConsoleApplication ?{ ??? using System; ??...
分类:Windows程序   时间:2015-02-17 10:28:10    阅读次数:151
JAVA 多态
多态是编程语言给不同的底层数据类型做相同的接口展示的一种能力。一个多态类型上的操作可以应用到其他类型的值上面package peoplePack;public class JavaApp { public static void main(String[] args) { You...
分类:编程语言   时间:2015-02-17 09:11:23    阅读次数:148
C# 部分语法总结(入门经典)
class Program { static void Main(string[] args) { init(); System.Console.ReadKey(); } #region 接口 ...
分类:Windows程序   时间:2015-02-17 00:47:32    阅读次数:288
sadfs
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页面字符的转码
jsp中,在接受request的中文字符时,显示出来的是乱码,jsp中含客户提交的含有汉字的数据,要采用特殊的处理方式,先将得到的字符串用iso-8859-1编码,并放到一个字节数组中,再用String类的构造函数将其转换为字符串对象,例如,下面的student的Name是ISO-8859-1的,要...
分类:Web程序   时间:2015-02-16 20:59:34    阅读次数:411
LeetCode 笔记22 Distinct Subsequences 动态规划需要冷静
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
javaWeb中关于什么异常告知用户的解决方案
首先要定义一个显示验证信息的类如: 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的两种动态规划解法
由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
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!