From 128bdda70e3b06e11a0e6de61491f5555d15f1ad Mon Sep 17 00:00:00 2001 From: Martin Goik <goik@hdm-stuttgart.de> Date: Wed, 5 Feb 2025 22:30:35 +0100 Subject: [PATCH] Cosmetics --- Doc/Sd1/Appendix/Exam/2024/Winter/exam.xml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/Doc/Sd1/Appendix/Exam/2024/Winter/exam.xml b/Doc/Sd1/Appendix/Exam/2024/Winter/exam.xml index 984dc23a..7b60b62e 100644 --- a/Doc/Sd1/Appendix/Exam/2024/Winter/exam.xml +++ b/Doc/Sd1/Appendix/Exam/2024/Winter/exam.xml @@ -73,11 +73,11 @@ <para>Apart from requiring the ugly <code language="java">return null</code> statement this approach is also ineffective due to possibly looping over all 12 zodiacs before finding the desired - match. This being cumbersome a better approach creates a - two-dimensional array <code>private static final Zodiac[][] - zodiacByMonthByDay</code> of zodiacs beforehand using - <code>month.ordinal()</code> as first and <code>day</code> as - second dimension index values:</para> + match. This being cumbersome we create a two-dimensional array + <code>private static final Zodiac[][] zodiacByMonthByDay</code> + of zodiacs beforehand using <code>month.ordinal()</code> as + first and <code>day</code> as second dimension index + values:</para> <screen> 0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 JAN: 0 Cap Cap Cap Cap Cap Cap Cap Cap Cap Cap Cap Cap Cap Cap Cap Cap Cap Cap Cap Aqu Aqu Aqu Aqu Aqu Aqu Aqu Aqu Aqu Aqu Aqu Aqu @@ -116,7 +116,7 @@ static { <para>static blocks get processed even before <code>main(...)</code> is being started. This guarantees our - array being initialized before any access happens. Our + array being initialized before any access happens. Our improved <methodname>getZodiac(...)</methodname> implementation no longer requires any loop or other quirks:</para> -- GitLab