<?xml version="1.0" encoding="UTF-8"?>
<class name="KnopfTest1" extends="Knopf" extends-java="Knopf" enable="true" strideversion="1">
    <javadoc xml:space="preserve">Die Uebungen (mit Loesungen) zu diesem Szenario finden Sie hier:
http://www.informatikzentrale.de/uebungen-foreach-schleife-greenfoot-3.html</javadoc>
    <imports>
        <import target="java.util.*" enable="true"/>
        <import target="greenfoot.*" enable="true"/>
    </imports>
    <implements/>
    <fields>
        <variable access="private" type="int[]" type-java="int[]" name="kontrollzahlen" value="{314,235,213,2321,231122,5536,321}" value-java="{314, 235, 213, 2321, 231122, 5536, 321}" enable="true"/>
        <variable access="private" type="String[]" type-java="String[]" name="hardwarekomponenten" value="{&quot;Grafikkarte&quot;,&quot;Arbeitsspeicher&quot;,&quot;CPU&quot;,&quot;Mainboard&quot;}" value-java="{&quot;Grafikkarte&quot;, &quot;Arbeitsspeicher&quot;, &quot;CPU&quot;, &quot;Mainboard&quot;}" enable="true"/>
    </fields>
    <constructors/>
    <methods>
        <method access="public" type="void" type-java="void" name="aktionAusfuehren" enable="true">
            <javadoc xml:space="preserve"/>
            <params/>
            <throws/>
            <body>
                <comment xml:space="preserve">Mit einer foreach-Schleife alle Kontrollzahlen und danach alle Hardwarekomponenten AUF DER KONSOLE untereinander ausgeben</comment>
                <foreach type="int" type-java="int" var="eineKontrollzahl" collection="this.kontrollzahlen" collection-java="this.kontrollzahlen" enable="true">
                    <call expression="this.textAusgeben(&quot;&quot;+eineKontrollzahl)" expression-java="this.textAusgeben(&quot;&quot; + eineKontrollzahl)" enable="true"/>
                </foreach>
            </body>
        </method>
    </methods>
</class>
