반응형
import java.io.*;
public class Mains implements Serializable{
private String name;
private String jumin;
private String tel;
private String addr;
private static transient BufferedReader in;
static {
in = new BufferedReader(new InputStreamReader(System.in));
}
public Mains() throws IOException
{
System.out.print("name = ");
name = in.readLine();
System.out.print("jumin = ");
jumin = in.readLine();
System.out.print("tel = ");
tel = in.readLine();
System.out.print("addr = ");
addr = in.readLine();
}
public void disp()
{
System.out.print(name + "\t");
System.out.print(jumin + "\t");
System.out.print(tel + "\t");
System.out.print(addr);
}
}
public class Mains implements Serializable{
private String name;
private String jumin;
private String tel;
private String addr;
private static transient BufferedReader in;
static {
in = new BufferedReader(new InputStreamReader(System.in));
}
public Mains() throws IOException
{
System.out.print("name = ");
name = in.readLine();
System.out.print("jumin = ");
jumin = in.readLine();
System.out.print("tel = ");
tel = in.readLine();
System.out.print("addr = ");
addr = in.readLine();
}
public void disp()
{
System.out.print(name + "\t");
System.out.print(jumin + "\t");
System.out.print(tel + "\t");
System.out.print(addr);
}
}
반응형