码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
Leetcode: Fraction to Recurring Decimal
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.If the fractional part is repeating,...
分类:其他好文   时间:2015-01-27 10:55:21    阅读次数:148
向post请求中写入数据,最终保存在了HttpWebRequest.Params中
一、向post请求中写入数据,最终保存在了HttpWebRequest.Params中: 1)如果存入的是IDictionary类型的字符串变量,如:“username=administrator”,则key=value; 2)如果写入的是string类型的变量,如"username",则ke...
分类:Web程序   时间:2015-01-27 10:51:59    阅读次数:161
校验身份证号码(转载)
1 public class IDCardVerify { 2 3 private String errorInfo; 4 5 // wi =2(n-1)(mod 11) 6 final int[] wi = { 7, 9, 10, 5, 8, 4, 2, ...
分类:其他好文   时间:2015-01-27 10:47:48    阅读次数:254
自定义Session类实现
public class CustomizeSession { private HttpSessionState _sesssion = HttpContext.Current.Session; public void SetSession(string ke...
分类:其他好文   时间:2015-01-27 10:45:12    阅读次数:220
工具类:Log
public static string LogPath{ get { string path = string.Empty; path = Environment.GetFolderPath(Environment.SpecialFolder.CommonP...
分类:其他好文   时间:2015-01-27 10:45:09    阅读次数:175
业务代码中(java class)中如何实现多线程,并且将子线程中的值随方法返回返回值
转载自http://bbs.csdn.net/topics/390731832问题:public static String getAddress(final InputStream inputStream, final String mobile) { new Thread() { ...
分类:编程语言   时间:2015-01-27 10:43:15    阅读次数:224
An的roi的进阶之数据库操作
1、创建SQliteOpenHeplper子类。 2、建立数据库和表结构如下:版本号从1开始。底层以String类型存放 public class LocationInfosDBHelper extends SQLiteOpenHelper { private static final String DATABASE_NAME="gpsinfos.db"; private static ...
分类:数据库   时间:2015-01-27 09:34:01    阅读次数:248
leetcode-----------Longest Substring Without Repeating Characters
Given a string, find the length of the longest substring without repeating characters. For example, the longest substring without repeating letters for "abcabcbb" is "abc", which the length is 3. Fo...
分类:其他好文   时间:2015-01-27 09:30:15    阅读次数:169
Javascript 处理 JSON 数据 示例
最近做了一个 MEAN stack 的 app 。后台用 NodeJS 从 Jira rest api 获得JSON数据并做处理,然后前端用 AngularJS Ajax call 获得处理后的 JSON 数据,显示到 App 上。处理了很多 JSON 数据,决定编一个例子,写一个总结。 JSON 数据处理,基本就是 JSON String 和 JSON Object 之间的转换。 J...
分类:编程语言   时间:2015-01-27 08:09:42    阅读次数:183
sql 查询条件过滤替换特许符号(‘,",+,!等)
查询条件过滤替换特许符号 public static string SpecialSymbols(string strText) { strText = strText.Trim(); strText = strText.Replace("!", "‘ + char(33) + ‘"); ...
分类:数据库   时间:2015-01-27 07:09:33    阅读次数:232
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!