其他分享
首页 > 其他分享> > ceshi

ceshi

作者:互联网

阿斯蒂芬

package com.ly;
import java.io.*;

public class Hello{
 public static void main(String[] args){
  try(PrintWriter out=new PrintWriter(new
          FileOutputStream("./employee"),false)){
   String name="Harry Hacker";
   double salary=75;
   out.print(name);
   out.print(' ');
   out.print(salary);
  }catch(IOException e){
   e.printStackTrace();
  }
  System.out.println("Hello");
 }
}

啊撒旦看风景看就

标签:PrintWriter,String,ceshi,print,new,Hello,out
来源: https://www.cnblogs.com/lwmfjc/p/14679458.html