码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
异步网络请求的封装
1 public class MainActivity extends Activity { 2 private String PATH = "https://www.baidu.com/"; 3 private TextView mTv; 4 @Override 5 ...
分类:其他好文   时间:2015-04-07 19:20:10    阅读次数:100
WPF线程问题
今天看书上写的一个例子,1 private void AddMessage(string formatString,2 params string[] parameters)3 {4 Dispatcher.BeginInvoke(new A...
分类:编程语言   时间:2015-04-07 19:17:23    阅读次数:181
int.Parse()容易出现的异常及解决办法
对于转化string stry{ int year =int.Parse(s);}异常 条件ArgumentNullException s为null 引用(在 Visual Basic 中为Nothing)FormatException s的格式不正确Overflo...
分类:其他好文   时间:2015-04-07 19:06:42    阅读次数:123
study1
1、MD5加密str为需要转换为MD5的字符串public static String ToMd5(this String str) { if (String.IsNullOrWhiteSpace(str)) return null; return System.Web.Security.Forms...
分类:其他好文   时间:2015-04-07 19:01:41    阅读次数:182
String,StringBuffer,StringBuilder区别
String 字符串常量StringBuffer 字符串变量(线程安全)StringBuilder 字符串变量(非线程安全)简要的说, String 类型和 StringBuffer 类型的主要性能区别其实在于 String 是不可变的对象, 因此在每次对 String 类型进行改变的时候其实都等同...
分类:其他好文   时间:2015-04-07 18:58:55    阅读次数:86
LeetCode #Valid Palindrome#
LeetCode #Valid Palindrome# 我的Python解答: """ Programmer : EOF e-mail : jasonleaster@gmail.com Date : 2015.04.07 File : vp.py """ import string ...
分类:其他好文   时间:2015-04-07 17:49:59    阅读次数:99
CSU1563:Lexicography(数学)
Description An anagram of a string is any string that can be formed using the same letters as the original. (We consider the original string an anagram of itself as well.) For example, the string...
分类:其他好文   时间:2015-04-07 17:45:41    阅读次数:114
lua正则表达式
lua中的正则表达式,规则如图: 常用示例,代码如下: -- 去掉首尾所有空格 function trim(s) return (string.gsub(s, "^%s*(.-)%s*$", "%1")) end local s = " space " local txt = trim(s) print(string.len(s), string.len(txt))...
分类:其他好文   时间:2015-04-07 17:44:59    阅读次数:422
leetcode-8 String to Integer (atoi)
?? 问题描述: Implement atoi to convert a string to an integer. Hint: Carefullyconsider all possible input cases. If you want a challenge, please do not seebelow and ask yourself what are the p...
分类:其他好文   时间:2015-04-07 17:41:26    阅读次数:133
最小树结构-普利姆
import java.util.Scanner; //普利姆 public class Main { static final int MAXVEX =65535; static final int MINVEX =65535; public static void main(String[] args) { MyGrop p = new MyGrop(); MinSpanTree...
分类:其他好文   时间:2015-04-07 17:40:35    阅读次数:134
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!