protected String getAbsoluteImagePath(Uri uri) { // can post image String [] proj={MediaStore.Images.Media.DATA}; Cursor c...
分类:
其他好文 时间:
2015-01-11 16:07:54
阅读次数:
184
题目:
Given a digit string, return all possible letter combinations that the number could represent.
A mapping of digit to letters (just like on the telephone buttons) is given below.
Input:D...
分类:
编程语言 时间:
2015-01-11 14:56:20
阅读次数:
236
/** * 将bitmap转换成base64字符串 * * @param bitmap * @return base64 字符串 */ public String bitmaptoString(Bitmap bitmap, int bitmapQuality) { // 将Bitmap...
分类:
其他好文 时间:
2015-01-11 14:47:39
阅读次数:
207
string str="123abc456"; int i=3; 1 取字符串的前i个字符 str=str.Substring(0,i); // orstr=str.Remove(i,str.Length-i); 2 去掉字符串的前i个字符: str=str.Remove(0,i);// or s....
和C++的类似,泛型定义了一种适用于任何类型的,可重用的代码,用一种抽象的方式来实现代码。Swift的Array和Dictionary都是用泛型来实现的,因为Array可以保存String类型的变量,也可以保存Int类型的。...
分类:
编程语言 时间:
2015-01-11 13:38:57
阅读次数:
197
一、Json的简单介绍从结构上看,所有的数据最终都可以分成三种类型:第一种类型是scalar(标量),也就是一个单独的string(字符串)或数字(numbers),比如“北京”这个单独的词。第二种类型是sequence(序列),也就是若干个相关的数据按照一定顺序并列在一起,又叫做array(数组)...
分类:
编程语言 时间:
2015-01-11 13:32:38
阅读次数:
296
Palindrome Number判断正整数是否是回文。不许额外占用空间。【分析】题目提示说,如果想把整数变换成string型,不符合题目不额外占空间,另外You could also try reversing an integer. However, if you have solved the...
分类:
其他好文 时间:
2015-01-11 12:22:45
阅读次数:
176
难点1,是栈,2是流程class Solution {public: int longestValidParentheses(string s) { stack mstack; char cbefore; int count = 0; if(s.empt...
分类:
其他好文 时间:
2015-01-11 12:14:33
阅读次数:
119
/*由数字字符串构造BigDecimal的方法 *设置BigDecimal的小数位数的方法 */ import java.math.BigDecimal; //数字字符串 String StrBd="1048576.1024"; //构造以字符串内容为值的BigDecimal类型的变量bd BigD...
分类:
编程语言 时间:
2015-01-11 12:13:30
阅读次数:
144
public SPFolderModel GetDocumentInfo(string folderPath) { var rootFolder = new SPFolderModel(); rootFolder = GetFileAndF...
分类:
其他好文 时间:
2015-01-11 12:12:19
阅读次数:
118