(Box b)
| 18 | } |
| 19 | |
| 20 | public boolean canBeAbove(Box b) { |
| 21 | if (b == null) { |
| 22 | return true; |
| 23 | } |
| 24 | if (width < b.width && height < b.height && depth < b.depth) { |
| 25 | return true; |
| 26 | } |
| 27 | return false; |
| 28 | } |
| 29 | |
| 30 | public String toString() { |
| 31 | return "Box(" + width + "," + height + "," + depth + ")"; |
no outgoing calls
no test coverage detected