| 网站首页 | 业界新闻 | 小组 | 威客 | 人才 | 下载频道 | 博客 | 代码贴 | 在线编程 | 编程论坛
欢迎加入我们,一同切磋技术
用户名:   
 
密 码:  
共有 462 人关注过本帖
标题:帮忙看下我这个程序哪里有问题。在myeclispe通不过
只看楼主 加入收藏
yhq892676
Rank: 1
等 级:新手上路
帖 子:2
专家分:4
注 册:2013-10-2
收藏
 问题点数:0 回复次数:2 
帮忙看下我这个程序哪里有问题。在myeclispe通不过
package
import *;
public class OutputStreamWriter
{
    public static void main(String args[])  throws Exception
    {
        File f1=new File("D:"+File.separator+"test.txt");
        File f2=new File("D:"+File.separator+"demo.txt");
        FileOutputStream out=new FileOutputStream(f1);
        FileInputStream in=new FileInputStream(f2);
        OutputStreamWriter output=null;
        output=new OutputStreamWriter(out);//说这行有错误
        InputStreamReader input=new InputStreamReader(in);
    }
}
搜索更多相关主题的帖子: import package public null 
2013-10-02 20:29
张朝成
Rank: 4
等 级:业余侠客
帖 子:149
专家分:265
注 册:2012-3-22
收藏
得分:0 
output=new OutputStreamWriter(out);//说这行有错误。。。。out删了,编译通过。
2013-10-12 16:06
ghjsmzy
Rank: 7Rank: 7Rank: 7
等 级:黑侠
威 望:1
帖 子:187
专家分:573
注 册:2009-6-17
收藏
得分:0 
图片附件: 游客没有浏览图片的权限,请 登录注册

没有报错
2013-10-12 20:37
快速回复:帮忙看下我这个程序哪里有问题。在myeclispe通不过
数据加载中...
 
   



关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 0.022871 second(s), 9 queries.
Copyright©2004-2024, BCCN.NET, All Rights Reserved