same job-shop problem but in java