io作业练习13

package lianxiti;

import java.io.IOException;
import java.io.PrintWriter;
import java.util.Scanner;


public class Test2 {

    public static void main(String[] args) throws IOException {
    Scanner s=new Scanner(System.in);
    System.out.println("请输入第一句话");
    String ss=s.nextLine();
    Scanner sg=new Scanner(System.in);
    System.out.println("请输入第二句话");
    String sf=sg.nextLine();
    
    PrintWriter pw=new PrintWriter("d:/zyy/test.txt");
    pw.print(ss);
    pw.print(sf);
    pw.close();
    s.close();
    }
    
    }
    

 

posted @ 2017-05-12 21:23  苏轼的红烧肉  阅读(89)  评论(0编辑  收藏  举报