童心未泯英文从键盘上输⼊客户资料:姓名、地址、电话号码,然后保存到⽂件⾥知识点:输⼊输出处理
import java.io.*;
public class Lesson8D2
考研真题下载{
String dName;principal怎么读
String dAddress;
String dPhone;
InputStreamReader kReader;
BufferedReader bReader;
FileOutputStream fWrite;
public Lesson8D2()
{
try
{
kReader=new InputStreamReader(System.in);
bReader=new BufferedReader(kReader);
雅思写作教材
System.out.println("Dealer Name:");
克蕾曼丝 波西adLine();
System.out.println("Dealer Address:");
adLine();
System.out.println("Dealer Phone:");
adLine();
kReader.clo();
let it go歌词bReader.clo();
fWrite=new FileOutputStream("",true);
祖国的十月String temp=dName+":"+dAddress+":"+dPhone"\n";
fWrite.Bytes());
pfoafWrite.clo();
}
catch(FileNotFoundException e)
{
System.out.println("The not exist "+e);
}
catch(IOException e)
{
System.out.println("Error: "+e);
}
}
public static void main(String ar[])
{
Lesson8D2 obj=new Lesson8D2();
}
naughty boy
}