Finished Thread Pool example code.

This commit is contained in:
Ilkka Seppala committed 2015-05-17 18:08:50 +03:00
1 parent 4c0a300b86
commit 6e76227143
5 files changed
+111

No files matched your search

@@ -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());
}
}