https://oj.leetcode.com/problems/reverse-words-in-a-string/Given an input string, reverse the string word by word.For example,Given s = "the sky is bl...
分类:
其他好文 时间:
2015-01-13 13:54:37
阅读次数:
135
为了方便记忆,写下。s为url需要添加网络权限,还有开启子线程访问网络 public Bitmap getBitmap(String s) { Bitmap bitmap = null; try { URL url = new URL(s); bitmap = BitmapFactor...
分类:
移动开发 时间:
2015-01-13 13:53:12
阅读次数:
120
strtok分割字符串函数,很好的解决了字符分割的要求,不必遍历取关键字再区后面字符
这样字符串中查找关键值获取后面的东西就方便多了...
分类:
其他好文 时间:
2015-01-13 12:33:07
阅读次数:
132
描述
java.lang.String.startsWith(String prefix ) 如果此字符串的方法测试用指定的前缀开始.
声明
以下是声明java.lang.String.startsWith()方法
public boolean startsWith(String prefix)
参数
prefix -- 这是值的前...
分类:
编程语言 时间:
2015-01-13 12:31:03
阅读次数:
181
public Dictionary GetSourceDisksElements(String section){ section = "[" + section; Dictionary keyToValue = new Dictionary(); //打开...
1工具类保存word文件 public class WordAction { public static void SaveAsWord(string fileName, string pFileName)//使用原生方法将mht转换为word文档,不是那种直接修改后缀名的方式 ...
分类:
Web程序 时间:
2015-01-13 12:10:19
阅读次数:
424
WebClient:1.post字符串 public string SendField_wc(string URL,string CookieData, string postData) { WebClient myWebClient = new WebClie...
#region/// 过滤html,js,css代码 /// /// 过滤html,js,css代码 /// /// 参数传入 /// public static string CheckStr(string html) { System.Text.Regu...
分类:
数据库 时间:
2015-01-13 12:02:36
阅读次数:
175
public class Office2Pdf { public bool DOCConvertToPDF(string sourcePath, string targetPath) { //StreamReader reader = new...
分类:
其他好文 时间:
2015-01-13 12:01:39
阅读次数:
101
C# HttpWebRequest和 webclient 的POST方法WebClient:1.post字符串 public string SendField_wc(string URL,string CookieData, string postData) { ...