码迷,mamicode.com
首页 >  
搜索关键字:string    ( 95377个结果)
Android视频处理 --处理视频第一帧缩略图
从API 8开始,新增了一个类:android.media.ThumbnailUtils这个类提供了3个静态方法一个用来获取视频第一帧得到的Bitmap,2个对图片进行缩略处理。?1public static Bitmap createVideoThumbnail (String filePath,...
分类:移动开发   时间:2015-01-15 20:04:23    阅读次数:183
使用java对执行命令行 或 执行bat文件
public class Hellotianhao {public static void main(String[] args) throws Exception{ System.out.println("hello tianhao"); Runtime.getRuntime().exec("cm...
分类:编程语言   时间:2015-01-15 19:54:28    阅读次数:145
c# txt文件的读写
namespace file { class MyFile { string FilePath; byte[] byData = new byte[100]; public char[] MyData = new char[1000]; public string reslutstr =...
分类:Windows程序   时间:2015-01-15 19:53:24    阅读次数:187
java IO使用Demo
public class ReadByteStream { public static void main(String[] args) { //stream 字节流 //reader,writer 字符流 //input 读取外部东西, ...
分类:编程语言   时间:2015-01-15 19:52:34    阅读次数:211
java实现不区分大小写替换
/** * java实现不区分大小写替换 * @param source * @param oldstring * @param newstring * @return */public static String IgnoreCaseReplace(String source, String ol...
分类:编程语言   时间:2015-01-15 19:44:36    阅读次数:183
LeetCode--Reverse Words in a String
Given an input string, reverse the string word by word. For example, Given s = "the sky is blue", return "blue is sky the". click to show clarification. Clarification: What constitutes...
分类:其他好文   时间:2015-01-15 18:26:13    阅读次数:161
Java-Integer to Roman
Given an integer, convert it to a roman numeral. Input is guaranteed to be within the range from 1 to 3999.   将阿拉伯数字转换为罗马字符 建立一个二维数组来代表转换表 代码如下: public class Solution { public String intToR...
分类:编程语言   时间:2015-01-15 18:21:16    阅读次数:186
开源一个C++实现的简单HTTP协议处理库
HTTP协议库有两个版本,一个是基于WININET,一个则是使用socket实现的。 可以支持POST 、GET请求,断点下载、重定向下载、下载进度回调,不支持HTTPS。 接口头文件声明如下: #pragma once #include using std::string; using std::wstring; #include #include enum REQUEST_T...
分类:编程语言   时间:2015-01-15 18:15:36    阅读次数:463
Java复制文件
public class FileUtil { private FileUtil() { } public static void copyFile(String srcFile,String targetPath){ File src = new File(srcFile); if(!src...
分类:编程语言   时间:2015-01-15 18:08:53    阅读次数:236
Fraction to Recurring Decimal
Given two integers representing the numerator and denominator of a fraction, return the fraction in string format.If the fractional part is repeating,...
分类:其他好文   时间:2015-01-15 18:07:21    阅读次数:178
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!