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("%-2d ", index % 32);
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));