Box the compass: Difference between revisions
Content added Content deleted
Line 2,756: | Line 2,756: | ||
case 2 -> heading -= 5.62; |
case 2 -> heading -= 5.62; |
||
} |
} |
||
System.out.printf("%- |
System.out.printf("%-3d", index % 32); |
||
/* we could also use 'Compass.values()[index % 32]' here */ |
/* we could also use 'Compass.values()[index % 32]' here */ |
||
System.out.printf("%-20s", Compass.parse(heading)); |
System.out.printf("%-20s", Compass.parse(heading)); |