Java program for the research of scheduling stuff. Need to be finish as soon as possible.