-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHellow.java
More file actions
44 lines (28 loc) · 1.26 KB
/
Hellow.java
File metadata and controls
44 lines (28 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
import java.util.Scanner;
public class Hellow {
public static void main(String[] args) {
Scanner keyboardScan =new Scanner(System. in);
System.out.print("번호? ");
String no = keyboardScan.nextLine();
System.out.print("이름? ");
String name = keyboardScan.nextLine();
System.out.print("이메일? ");
String email = keyboardScan.nextLine();
System.out.print("암호? ");
String password = keyboardScan.nextLine();
System.out.print("사진? ");
String photo = keyboardScan.nextLine();
System.out.print("전화? ");
String tel = keyboardScan.nextLine();
java.sql.Date now = new java.sql.Date(System.currentTimeMillis());
keyboardScan.close(); // 데이터 입출력이 끝났으면 도구를 닫는다.
System.out.println("--------------------------------");
System.out.println("번호: " + no);
System.out.println("이름: " + name);
System.out.println("이메일: " + email);
System.out.printf("암호: %s\n", password);
System.out.printf("사진: %s\n", photo);
System.out.printf("전화: %s\n", tel);
System.out.printf("가입일: %s\n", now);
}
}