码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
asp.net中使用ffmpeg
protected void Button1_Click(object sender, EventArgs e){ string FFmpegArguments = @" -i D:\离歌.wmv -ab 56 -ar 22050 -b 500 -r 15 -s 320x240 D:\离歌.f...
分类:Web程序   时间:2015-05-18 20:19:45    阅读次数:134
服务端生成二维码,并已base64返回
def?authBatch?=?authLog.getAuthBatch() ????????String?text?=?ConfReader.get("QRCODE_VALIDATE_PATH_PRE")?+?authBatch ????????//?二维码的图片格式 ????????HashMap<Enc...
分类:其他好文   时间:2015-05-18 19:04:15    阅读次数:111
Redis内存使用优化与存储
Redis常用数据类型 Redis最为常用的数据类型主要有以下五种: String Hash List Set Sorted? ???set 在具体描述这几种数据类型之前,我们先通过一张图了解下Redis内部内存管理中是如何描述这些不同数据类型的...
分类:其他好文   时间:2015-05-18 19:01:26    阅读次数:173
多点触控改变WebView字体大小
实现多个手机操作字体放大缩小,需要重写dispatchTouchEvent方法。直接上代码: ``` public boolean dispatchTouchEvent(MotionEvent event) { String fontSize = getSharedPreference("fontSize","normal");//代...
分类:Web程序   时间:2015-05-18 19:01:25    阅读次数:130
TypeScript语法(一)——基本数据类型
一、布尔类型(Boolean)var isDone: boolean = true;二、数字类型(Number)var height: number = 6;三、字符串类型(String)可以使用双引号,也可以使用单引号var name: string = "bob"; name = 'smith';四、数组类型(Array)两种方式声明一个数组:第一种:var list:number[] = [1...
分类:其他好文   时间:2015-05-18 19:00:00    阅读次数:114
【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”, whic...
分类:其他好文   时间:2015-05-18 18:54:52    阅读次数:99
equals & ==
str1.equals(str2)比较两个字符串的值是否相等str1 == str2根据JDK的说明,只有在两个引用指向同一个对象时才返回真值1 String str1 = "abc";2 3 String str2 = "abc";4 5 System.out.println(str1==str2...
分类:其他好文   时间:2015-05-18 18:51:06    阅读次数:95
java中如何将字符串数组转换成字符串(转)
如果是 “字符串数组” 转 “字符串”,只能通过循环,没有其它方法 String[] str = {"abc", "bcd", "def"};StringBuffer sb = new StringBuffer();for(int i = 0; i < str.length; i++){ sb. a...
分类:编程语言   时间:2015-05-18 18:50:52    阅读次数:139
[LeetCode][JavaScript]Valid Palindrome
https://leetcode.com/problems/valid-palindrome/Valid PalindromeGiven a string, determine if it is a palindrome, considering only alphanumeric characte...
分类:编程语言   时间:2015-05-18 18:46:26    阅读次数:304
深圳同城快跑笔试题目 2 实现json字符串保存到本地硬盘
//从给定位置读取Json文件 public static String readJson(String path){ //从给定位置获取文件 File file = new File(path); BufferedReader reader ...
分类:Web程序   时间:2015-05-18 18:41:47    阅读次数:104
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!