Finished Thread Pool example code.

This commit is contained in:
Ilkka Seppala
2015-05-17 18:08:50 +03:00
parent 4c0a300b86
commit 6e76227143
5 changed files with 111 additions and 0 deletions
@@ -0,0 +1,15 @@
package com.iluwatar;
public class CoffeeMakingTask extends Task {
private static int TIME_PER_CUP = 300;
public CoffeeMakingTask(int numCups) {
super(numCups * TIME_PER_CUP);
}
@Override
public String toString() {
return String.format("%s %s", this.getClass().getSimpleName(), super.toString());
}
}