蜗牛在奔跑
来源:互联网 发布:台湾清华大学知乎 编辑:程序博客网 时间:2024/04/30 23:35
// 最近一直忙着自学 java没空写博客啦,已经一个月没写了。再写写我最近学的吧!
//关于IO流的小知识。用IO流实现一个MP3的复制。
import java.io.*;
public class CopyMp3 {
/**
* @param args
*/
public static void main(String[] args) throws IOException {
// TODO Auto-generated method stub
long start=System.currentTimeMillis();
coy_1();
long end=System.currentTimeMillis();
System.out.println(end-start+"毫秒");
}
public static void coy_1() throws IOException
{
BufferedInputStream buffin=new BufferedInputStream(new FileInputStream("G:\\1.mp3"));
BufferedOutputStream buffout=new BufferedOutputStream(new FileOutputStream("G:\\2.mp3"));
int len=0;
while ((len=buffin.read())!=-1)
{
buffout.write(len);
}
buffin.close();
buffout.close();
}
}
- 蜗牛在奔跑
- 一直都在奔跑
- 在寒冷中奔跑
- 奔跑在面试的路上
- 奔跑
- 奔跑
- 奔跑
- 蜗牛
- 蜗牛
- 蜗牛
- 蜗牛
- 蜗牛
- 蜗牛
- 生活在继续,蜗牛在狂奔
- 信息世界正拖着我们在奔跑
- 在微微细雨中奔跑着
- 喜欢在大雨中奔跑的感觉
- 奔跑在爱情的高速路上
- awk基础
- 简单的委托示例
- java环境变量配置
- 解决apt-get update 告警提示
- 第9周-任务4-二维数组类
- 蜗牛在奔跑
- 黑马程序员_SQL Server学习第二季
- struts2技术内幕读书笔记1--设计模式
- Oracle 连表查询
- VC里面的Error spawning link.exe 或者cl.exe
- 方向
- Oracle 函数大全(字符串函数,数学函数,日期函数,逻辑运算函数,其他函数)
- 第九周任务(2)
- Oracle 临时表