|
|
| Zeile 346: |
Zeile 346: |
| </syntaxhighlight> | | </syntaxhighlight> |
| {{Lösung:End}} | | {{Lösung:End}} |
|
| |
| == Quiz ==
| |
| Notiere in den Tabellen den Zustand des Arrays nach Ausführung des Quelltextes.
| |
| <syntaxhighlight lang="java">
| |
| int[] zahlen = new int[6];
| |
| </syntaxhighlight>
| |
| <lückentext>
| |
| {| class="wikitable text-center code"
| |
| ! Inhalt
| |
| | '''0()''' || '''0()''' || '''0()''' || '''0()''' || '''0()''' || '''0()'''
| |
| |-
| |
| ! Index
| |
| | 0 || 1 || 2 || 3 || 4 || 5
| |
| |}
| |
| </lückentext>
| |
| <syntaxhighlight lang="java">
| |
| zahlen[5] = 11;
| |
| </syntaxhighlight>
| |
| <lückentext>
| |
| {| class="wikitable text-center code"
| |
| ! Inhalt
| |
| | '''0()''' || '''0()''' || '''0()''' || '''0()''' || '''0()''' || '''11()'''
| |
| |-
| |
| ! Index
| |
| | 0 || 1 || 2 || 3 || 4 || 5
| |
| |}
| |
| </lückentext>
| |