-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathJ05006.java
More file actions
40 lines (33 loc) · 1.07 KB
/
J05006.java
File metadata and controls
40 lines (33 loc) · 1.07 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
import java.util.Scanner;
class NhanVien {
private String mnv;
private String ht;
private String gt;
private String ns;
private String dc;
private String mst;
private String nkhd;
public NhanVien(int mnv, String ht, String gt, String ns, String dc, String mst, String nkhd) {
this.mnv = String.format("%05d", mnv);
this.ht = ht;
this.gt = gt;
this.ns = ns;
this.dc = dc;
this.mst = mst;
this.nkhd = nkhd;
}
public String toString() {
return this.mnv + " " + this.ht + " " + this.gt + " " + this.ns + " " + this.dc + " " + this.mst + " " + this.nkhd;
}
}
public class J05006 {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
sc.nextLine();
for (int i = 1; i <= t; i++) {
NhanVien x = new NhanVien(i, sc.nextLine(), sc.nextLine(), sc.nextLine(), sc.nextLine(), sc.nextLine(), sc.nextLine());
System.out.println(x);
}
}
}