码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
Android 微信登录昵称乱码问题,及获取微信用户信息
微信第三方登录时昵称,username乱码问题解决方法如下: /** * 获取微信用户信息 * @param access_token 调用凭证 * @param openid 普通用户的标识,对当前开发者帐号唯一 * @return */ public static String getWeixinUserinfo(String access_token, String ...
分类:微信   时间:2015-06-12 17:34:57    阅读次数:851
Android ContentResolver
一、 String searchQuery = "column1 like ‘%" + searchKey + "%‘ or column2 like ‘%" + searchKey + "%‘"; ?String searchQuery 2= "column1 like ? or column2 like?";?? c = getContentResolver().query(u...
分类:移动开发   时间:2015-06-12 17:34:51    阅读次数:153
字符串查找和替换接口
int replace_str(std::string& str, const char * oldpart, const char * newpart) { int nReplaced = 0; std::string::size_type nIdx = 0; std::string::size_type nOldLen = strlen(oldpart); if ( 0...
分类:其他好文   时间:2015-06-12 17:30:54    阅读次数:138
顺序串
public class SqString { char[] data; int length; SqString() { data = new char[30]; length = 0; } SqString(String s) { data = new char[30]; for(int i=0; i<s.length(); i++) { data[i...
分类:其他好文   时间:2015-06-12 17:28:25    阅读次数:126
Java利用Jave转换视频格式为3gp
/** * 将上传的视频转换为3gp标清格式 *  * @param resourceId * @return */ public static Map to3GP(String resourceId) { String sourcePath = "E:"; String sourceFilePath = sourcePath + "/" + resourceId; logger...
分类:编程语言   时间:2015-06-12 17:27:32    阅读次数:249
Codeforces548A:Mike and Fax
While Mike was walking in the subway, all the stuff in his back-bag dropped on the ground. There were several fax messages among them. He concatenated these strings in some order and now he has string...
分类:其他好文   时间:2015-06-12 17:14:18    阅读次数:118
String与StringBuffer的区别
String 是一个常量,即一旦创建不可更改 输出结果为:helloworldjeok 看似,string变量name的值改变了,其实此name非彼name。 输出结果为: sex:hello worldjeok name:hello world 由上面的对比可以知道String是个常量,对其做的改变字符串操作,只不过是重新建立一个string对象,而string变量的...
分类:其他好文   时间:2015-06-12 17:12:41    阅读次数:89
字符串转Hex编码
public static String toHex(String str){ try { byte[] bytes = str.getBytes("GBK"); StringBuilder sb = new StringBuilder(by...
分类:其他好文   时间:2015-06-12 17:10:10    阅读次数:102
LeetCode之“动态规划”:Interleaving String
题目链接 题目要求: Givens1,s2,s3, find whethers3is formed by the interleaving ofs1ands2. For example, Given: s1="aabcc", s2="dbbca", Whens3="aadbbcb...
分类:其他好文   时间:2015-06-12 17:08:24    阅读次数:83
struts2 的action 向页面传值
写一个Action类:public class LoginAction{public String execute(){return SUCCESS;}public void setValue(SomeBean value){this.value=value;}public SomeBean get...
分类:其他好文   时间:2015-06-12 17:04:54    阅读次数:77
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!