Commit 63589098 authored by Dr. Martin Goik's avatar Dr. Martin Goik

MI GITLAB LINK CORRECTIONS

parent 79010944
......@@ -11733,7 +11733,7 @@ After call: <emphasis role="red">6</emphasis></screen></td>
<title>Weekly offered lectures</title>
<programlisting language="java">public class <link
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/tree/master/Doc/Sd1/Ref/ObjectsAndClasses/Intro/Enum/src/main/java/de/hdm_stuttgart/mi/sd1/integer_representation/Lecture.java">Lecture</link> {
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/tree/master/Doc/Sd1/Ref/ObjectsAndClasses/Enum/Intro/src/main/java/de/hdm_stuttgart/mi/sd1/integer_representation/Lecture.java">Lecture</link> {
public final int dayHeld; /* e.g. to be held on Tuesdays */
......@@ -11752,7 +11752,7 @@ After call: <emphasis role="red">6</emphasis></screen></td>
<para>Quick and dirty:</para>
<programlisting language="none">Class <link
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/tree/master/Doc/Sd1/Ref/ObjectsAndClasses/Intro/Enum/src/main/java/de/hdm_stuttgart/mi/sd1/integer_representation/Driver.java">Driver</link>:
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/tree/master/Doc/Sd1/Ref/ObjectsAndClasses/Enum/Intro/src/main/java/de/hdm_stuttgart/mi/sd1/integer_representation/Driver.java">Driver</link>:
final Lecture
phpIntro = new Lecture(1 /* Monday */, "PHP introduction"),
......@@ -11776,7 +11776,7 @@ final Lecture
representation</title>
<programlisting language="java">public class <link
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/tree/master/Doc/Sd1/Ref/ObjectsAndClasses/Intro/Enum/src/main/java/de/hdm_stuttgart/mi/sd1/integer_representation/Day.java">Day</link> {
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/tree/master/Doc/Sd1/Ref/ObjectsAndClasses/Enum/Intro/src/main/java/de/hdm_stuttgart/mi/sd1/integer_representation/Day.java">Day</link> {
static public final int
MONDAY = 1,
......@@ -11793,7 +11793,7 @@ final Lecture
<title>Weekly offered lectures using constants</title>
<programlisting language="none">Class <link
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/tree/master/Doc/Sd1/Ref/ObjectsAndClasses/Intro/Enum/src/main/java/de/hdm_stuttgart/mi/sd1/integer_representation/Driver.java">Driver</link>:
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/tree/master/Doc/Sd1/Ref/ObjectsAndClasses/Enum/Intro/src/main/java/de/hdm_stuttgart/mi/sd1/integer_representation/Driver.java">Driver</link>:
final Lecture
phpIntro = new Lecture(<emphasis role="red">Day.MONDAY</emphasis>, "PHP introduction"),
......@@ -11804,7 +11804,7 @@ final Lecture
<title>Converting index values to day names</title>
<programlisting language="java">public class <link
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/tree/master/Doc/Sd1/Ref/ObjectsAndClasses/Intro/Enum/src/main/java/de/hdm_stuttgart/mi/sd1/integer_representation/Day.java">Day</link> {
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/tree/master/Doc/Sd1/Ref/ObjectsAndClasses/Enum/Intro/src/main/java/de/hdm_stuttgart/mi/sd1/integer_representation/Day.java">Day</link> {
...
public static String getDaysName(final int day) {
switch (day) {
......@@ -11826,7 +11826,7 @@ final Lecture
<title>Providing lecture info</title>
<programlisting language="java">public class <link
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/tree/master/Doc/Sd1/Ref/ObjectsAndClasses/Intro/Enum/src/main/java/de/hdm_stuttgart/mi/sd1/integer_representation/Lecture.java">Lecture</link> {
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/tree/master/Doc/Sd1/Ref/ObjectsAndClasses/Enum/Intro/src/main/java/de/hdm_stuttgart/mi/sd1/integer_representation/Lecture.java">Lecture</link> {
public final int dayHeld;
...
......@@ -11847,7 +11847,7 @@ final Lecture
<tr>
<td valign="top"><programlisting language="java">// Class <link
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/tree/master/Doc/Sd1/Ref/ObjectsAndClasses/Intro/Enum/src/main/java/de/hdm_stuttgart/mi/sd1/integer_representation/Driver.java">Driver</link>
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/tree/master/Doc/Sd1/Ref/ObjectsAndClasses/Enum/Intro/src/main/java/de/hdm_stuttgart/mi/sd1/integer_representation/Driver.java">Driver</link>
final Lecture
phpIntro = new Lecture(
......@@ -11877,7 +11877,7 @@ Lecture «Advanced Java»
<tr>
<td valign="top"><programlisting language="none">// Class <link
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/tree/master/Doc/Sd1/Ref/ObjectsAndClasses/Intro/Enum/src/main/java/de/hdm_stuttgart/mi/sd1/integer_representation/Screwed.java">Screwed</link>
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/tree/master/Doc/Sd1/Ref/ObjectsAndClasses/Enum/Intro/src/main/java/de/hdm_stuttgart/mi/sd1/integer_representation/Screwed.java">Screwed</link>
final Lecture phpIntro =
new Lecture(<emphasis role="red">88</emphasis>, "PHP introduction");
......@@ -11907,7 +11907,7 @@ held each Illegal day's code: <emphasis role="red">88</emphasis></screen></td>
* given day of week.
*/
static public int <link
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/tree/master/Doc/Sd1/Ref/ObjectsAndClasses/Intro/Enum/src/main/java/de/hdm_stuttgart/mi/sd1/integer_representation/Screwed2.java">getPrice</link>(
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/tree/master/Doc/Sd1/Ref/ObjectsAndClasses/Enum/Intro/src/main/java/de/hdm_stuttgart/mi/sd1/integer_representation/Screwed2.java">getPrice</link>(
final int day, final int amount) {
switch (day) {
case Day.SATURDAY:
......
......@@ -3082,7 +3082,7 @@ for (int row = 0; row &lt; numberOfRows; row++) {
</informaltable>
<para>A complete solution is available at the <link
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/-/tree/master/Doc/Sd1/Ref/Statements/XmasTree/src/main/java/de/hdm_stuttgart/mi/sd1/Xmas.java">MI
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/tree/master/Doc/Sd1/Ref/Statements/XmasTree/src/main/java/de/hdm_stuttgart/mi/sd1/Xmas.java">MI
Gitlab</link> repository. We start dissecting the problem in a
version being fully covered by our current knowledge. Our aim is
printing:</para>
......@@ -3337,7 +3337,7 @@ System.out.println("<emphasis role="red">*</emphasis>".repeat(repetitions));</pr
<para>Combining both methods completely obsoletes all
<quote>inner</quote> loops thereby considerably enhancing our
code's readability. You'll see a re-implementation in <link
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/-/tree/master/Doc/Sd1/Ref/Statements/XmasTree/src/main/java/de/hdm_stuttgart/mi/sd1/XmasUsingFormat.java">XmasUsingFormat.java</link>:</para>
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/tree/master/Doc/Sd1/Ref/Statements/XmasTree/src/main/java/de/hdm_stuttgart/mi/sd1/XmasUsingFormat.java">XmasUsingFormat.java</link>:</para>
<programlisting language="java">final int numberOfRows = 6; // You may easily change this value.
......@@ -3427,7 +3427,7 @@ System.out.format("%"+ (numberOfRows + 1) + "s\n", "###");</programlisting>
<answer>
<para>A complete solution is available at the <link
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/-/tree/master/Doc/Sd1/Ref/Statements/MoreFunXmasTree/src/main/java/de/hdm_stuttgart/mi/sd1/Xmas.java">MI
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/tree/master/Doc/Sd1/Ref/Statements/MoreFunXmasTree/src/main/java/de/hdm_stuttgart/mi/sd1/Xmas.java">MI
Gitlab</link> repository. We start again from a version being
fully covered by our current knowledge. This time we try
printing the following lines:</para>
......@@ -3733,7 +3733,7 @@ System.out.println("<emphasis role="red">[___]</emphasis>");
xlink:href="https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/lang/String.html">String</classname>.<methodname
xlink:href="https://docs.oracle.com/en/java/javase/14/docs/api/java.base/java/lang/String.html#repeat(int)">repeat()</methodname>.
This variant's full source code is on offer at <link
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/-/tree/master/Doc/Sd1/Ref/Statements/MoreFunXmasTree/src/main/java/de/hdm_stuttgart/mi/sd1/XmasUsingFormat.java">XmasUsingFormat.java</link>.</para>
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/tree/master/Doc/Sd1/Ref/Statements/MoreFunXmasTree/src/main/java/de/hdm_stuttgart/mi/sd1/XmasUsingFormat.java">XmasUsingFormat.java</link>.</para>
<programlisting language="java">final int numberOfRowGroups = 5; // You may easily change this parameter.
......@@ -7230,7 +7230,7 @@ for (int a = 1; a &lt;= sum / 3; a++) {
<listitem>
<para>Sample project at <link
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/-/tree/master/Doc/Sd1/Ref/Statements/BasicUnitTest">MI
xlink:href="https://gitlab.mi.hdm-stuttgart.de/goik/GoikLectures/tree/master/Doc/Sd1/Ref/Statements/BasicUnitTest">MI
Gitlab</link>.</para>
</listitem>
</itemizedlist>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment