Box the compass: Difference between revisions
Content added Content deleted
Line 2,747: | Line 2,747: | ||
=={{header|Java}}== |
=={{header|Java}}== |
||
<p> |
<p> |
||
For this task, I used an <kbd>enumeration</kbd> to |
For this task, I used an <kbd>enumeration</kbd> to contain all 32-points of the compass.<br /> |
||
The bounds and mid-points can then be derived using the <code>enum</code> ordinal value. |
The bounds and mid-points can then be derived using the <code>enum</code> ordinal value. |
||
</p> |
</p> |