39 lines
1018 B
Java
39 lines
1018 B
Java
|
package com.dota;
|
||
|
|
||
|
import com.dota.domain.Doctor;
|
||
|
import com.dota.domain.Week;
|
||
|
import com.dota.domain.doctors.*;
|
||
|
|
||
|
public class Main {
|
||
|
|
||
|
public static void main(String[] args) {
|
||
|
var gl = new GuLei();
|
||
|
var zl = new ZhangLiang();
|
||
|
var ttt = new TangTingTing();
|
||
|
var zy = new ZuYi();
|
||
|
var ln = new LiNing();
|
||
|
var zh = new ZhouHui();
|
||
|
var tgy = new TianGuoYan();
|
||
|
var doctorOrder = new Doctor[]{
|
||
|
gl,zl,ttt,zy,ln,zh
|
||
|
};
|
||
|
var outputOrder = new Doctor[] {
|
||
|
ln,zy,ttt,zl,zh,gl,tgy
|
||
|
};
|
||
|
schedule(doctorOrder);
|
||
|
print(2, outputOrder);
|
||
|
}
|
||
|
|
||
|
static void schedule(Doctor[] doctorOrder) {
|
||
|
|
||
|
}
|
||
|
|
||
|
static void print(int weeks, Doctor[] outputOrder) {
|
||
|
for (int i = 0; i < weeks; i++) {
|
||
|
for (Week value : Week.values()) {
|
||
|
System.out.print(value.getValue());
|
||
|
}
|
||
|
System.out.println(" ");
|
||
|
}
|
||
|
}
|
||
|
}
|